C# VSTO Excel加载项在用于签名的证书到期后不工作
我在WPF项目中使用VSTO。 我正在使用pfx文件对exe、addin dll、msi、安装程序进行签名,该文件将于2021年6月23日到期。我正在使用digicert进行时间戳。但证书到期后,addin将不起作用 我用以下方法检查: 当我在证书到期日后更改系统时钟时,加载项未加载。 但是如果我有时间戳,它必须正常工作 我尝试从下面的链接,但对我无效: 我尝试了以下方法,但也不起作用。 方法1:C# VSTO Excel加载项在用于签名的证书到期后不工作,c#,vsto,clickonce,code-signing,signing,C#,Vsto,Clickonce,Code Signing,Signing,我在WPF项目中使用VSTO。 我正在使用pfx文件对exe、addin dll、msi、安装程序进行签名,该文件将于2021年6月23日到期。我正在使用digicert进行时间戳。但证书到期后,addin将不起作用 我用以下方法检查: 当我在证书到期日后更改系统时钟时,加载项未加载。 但是如果我有时间戳,它必须正常工作 我尝试从下面的链接,但对我无效: 我尝试了以下方法,但也不起作用。 方法1: signtool sign /f mycertpfx.pfx /p passwd /tr htt
signtool sign /f mycertpfx.pfx /p passwd /tr http://timestamp.digicert.com/?alg=sha256 /td sha256 /fd sha256 /d "myexe.exe"
方法2:
signtool sign /t http://timestamp.digicert.com /f "mycertpfx.pfx" /p passwdr "myexe.exe"
signtool sign /t http://timestamp.digicert.com /f "mycertpfx.pfx" /p passwdr "myaddin.dll"
signtool sign /t http://timestamp.digicert.com /f "mycertpfx.pfx" /p passwdr "mymsi.msi"
signtool sign /t http://timestamp.digicert.com /f "mycertpfx.pfx" /p passwdr "myinstaller.exe"
方法3:
signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /f "mycertpfx.pfx" /p passwdr "myexe.exe"
signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /f "mycertpfx.pfx" /p passwdr "myaddin.dll"
signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /f "mycertpfx.pfx" /p passwdr "mymsi.msi"
signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /f "mycertpfx.pfx" /p passwdr "myinstaller.exe"
需要解决上述问题
还需要一种方法来检查单击一次(excel添加vsto)是否有效,即使在证书到期后也是如此。(如系统时钟更改)
IDE:Visual studio 2017
“…当我更改系统时钟时”-这让您的帖子有点可疑…尤其是对于
HP Inc
add-in@MickyD“HP Inc”只是为安装而创建的目录。我的问题是,证书到期后,excel加载项将不起作用。“证书到期后,excel加载项将不起作用”-这是设计上的
@MickyD如果我们通过签名和时间戳创建excel加载项,则即使在签名证书到期后,加载项也必须起作用。@MickyD参考: