Visual Basic Express 2008,开发的 vb.net 数据库应用程序。在 Win7 x64 电脑上。
我更改了构建配置。管理器到平台:x86,因此 .exe 在 x86 和 x64 机器上运行。最后一个答案:在 Visual C# 2008 Express Edition 中设置 32 位 x86 构建目标?
购买了 MS Authenticode 证书。来自 Symantec/Verisign,收到证书,安装在浏览器中。导出的证书。从浏览器到 .pfx。在 VS 属性/签名选项卡中,检查签名组件然后导航到 .pfx。
构建后,使用 signtool 对 .exe 进行签名
signtool.exe sign /ac "c:\users\me\desktop\debugv6\winCert.cer" /s MY /t http://timestamp.verisign.com/scripts/timestamp.dll /n "Our Company Inc." /v c:\users\me\desktop\debugv6\db.exe
The following certificate was selected:
Issued to: Our Company Inc.
Issued by: VeriSign Class 3 Code Signing 2010 CA
Expires: 7/31/2014 6:59:59 PM
SHA1 hash: xxlongStringxx
Done Adding Additional Store
Attempting to sign: c:\users\me\desktop\debugv6\db.exe
Successfully signed and timestamped: c:\users\me\desktop\debugv6\db.exe
Number of files successfully Signed: 1
Number of warnings: 0
Number of errors: 0
然后使用signtool验证
signtool.exe verify /pa /v c:\users\me\desktop\debugv6\db.exe
Verifying: c:\users\me\desktop\debugv6\db.exe
SHA1 hash of file: xxlongStringxx
Signing Certificate Chain:
Issued to: VeriSign Class 3 Public Primary Certification Authority - G5
Issued by: VeriSign Class 3 Public Primary Certification Authority - G5
Expires: 7/16/2036 6:59:59 PM
SHA1 hash: xxlongStringxx
Issued to: VeriSign Class 3 Code Signing 2010 CA
Issued by: VeriSign Class 3 Public Primary Certification Authority - G5
Expires: 2/7/2020 6:59:59 PM
SHA1 hash: xxlongStringxx
Issued to: Our Company Inc.
Issued by: VeriSign Class 3 Code Signing 2010 CA
Expires: 7/31/2014 6:59:59 PM
SHA1 hash: xxlongStringxx
The signature is timestamped: 7/31/2013 4:18:46 PM
Timestamp Verified by:
Issued to: Thawte Timestamping CA
Issued by: Thawte Timestamping CA
Expires: 12/31/2020 6:59:59 PM
SHA1 hash: xxlongStringxx
Issued to: Symantec Time Stamping Services CA - G2
Issued by: Thawte Timestamping CA
Expires: 12/30/2020 6:59:59 PM
SHA1 hash: xxlongStringxx
Issued to: Symantec Time Stamping Services Signer - G4
Issued by: Symantec Time Stamping Services CA - G2
Expires: 12/29/2020 6:59:59 PM
SHA1 hash: xxlongStringxx
Successfully verified: c:\users\me\desktop\debugv6\db.exe
Number of files successfully Verified: 1
Number of warnings: 0
Number of errors: 0
问题
从 WinXP 32 位系统启动 .exe 时,我得到 Publisher: Our Company Inc. Great。但是从一些Win7 x64 机器启动时,我得到发布者:未知。
任何人都有这个问题。前?
谢谢!