Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# VSTO Excel加载项在用于签名的证书到期后不工作_C#_Vsto_Clickonce_Code Signing_Signing - Fatal编程技术网

C# VSTO Excel加载项在用于签名的证书到期后不工作

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

我在WPF项目中使用VSTO。 我正在使用pfx文件对exe、addin dll、msi、安装程序进行签名,该文件将于2021年6月23日到期。我正在使用digicert进行时间戳。但证书到期后,addin将不起作用

我用以下方法检查: 当我在证书到期日后更改系统时钟时,加载项未加载。 但是如果我有时间戳,它必须正常工作

我尝试从下面的链接,但对我无效:

我尝试了以下方法,但也不起作用。 方法1:

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参考: