Comodo - 签名代码 - 时间戳问题
Comodo - signing code - issue with timestamp
我使用:
; Create COM objects
; https://docs.microsoft.com/en-us/windows/win32/seccrypto/signedcode
Local $oSignedCode = ObjCreate("CAPICOM.SignedCode.1")
; https://docs.microsoft.com/en-us/windows/win32/seccrypto/signedcode-signer
; https://docs.microsoft.com/en-us/windows/win32/seccrypto/signer
Local $oSigner = ObjCreate("CAPICOM.Signer.1")
; Load certificate - Who Is Signing
$oSigner.Load($s_FileFullPath_Certificat, $s_Password)
我签名没问题:
$oSignedCode.Sign($oSigner)
我的问题始于 2021 年,涉及时间戳。
到目前为止我使用的是:
; TimeStampIt
$oSignedCode.Timestamp("https://timestamp.verisign.com/scripts/timestamp.dll")
但是当 2021 年开始时,我经常遇到这种错误:
Error.description is: An unknown error has occured. Please contact your vendor for assistance.
我试图找到其他 TimeStamp 服务器:
$oSignedCode.Timestamp("http://sha256timestamp.ws.symantec.com/sha256/timestamp")
$oSignedCode.Timestamp("http://timestamp.comodoca.com")
$oSignedCode.Timestamp("http://timestamp.comodoca.com?td=SHA-384")
$oSignedCode.Timestamp("http://timestamp.sectigo.com/qualified")
但没有一个有效。
问题:如何解决时间戳问题?
此致,
迈克尔
编辑:顺便说一句...我使用 COMODO 证书进行签名。
尝试使用这个 URL:
http://timestamp.globalsign.com/scripts/timestamp.dll
相反。
在您的代码中:
$oSignedCode.Timestamp("http://timestamp.globalsign.com/scripts/timestamp.dll")
我使用:
; Create COM objects
; https://docs.microsoft.com/en-us/windows/win32/seccrypto/signedcode
Local $oSignedCode = ObjCreate("CAPICOM.SignedCode.1")
; https://docs.microsoft.com/en-us/windows/win32/seccrypto/signedcode-signer
; https://docs.microsoft.com/en-us/windows/win32/seccrypto/signer
Local $oSigner = ObjCreate("CAPICOM.Signer.1")
; Load certificate - Who Is Signing
$oSigner.Load($s_FileFullPath_Certificat, $s_Password)
我签名没问题:
$oSignedCode.Sign($oSigner)
我的问题始于 2021 年,涉及时间戳。
到目前为止我使用的是:
; TimeStampIt
$oSignedCode.Timestamp("https://timestamp.verisign.com/scripts/timestamp.dll")
但是当 2021 年开始时,我经常遇到这种错误:
Error.description is: An unknown error has occured. Please contact your vendor for assistance.
我试图找到其他 TimeStamp 服务器:
$oSignedCode.Timestamp("http://sha256timestamp.ws.symantec.com/sha256/timestamp")
$oSignedCode.Timestamp("http://timestamp.comodoca.com")
$oSignedCode.Timestamp("http://timestamp.comodoca.com?td=SHA-384")
$oSignedCode.Timestamp("http://timestamp.sectigo.com/qualified")
但没有一个有效。
问题:如何解决时间戳问题?
此致, 迈克尔
编辑:顺便说一句...我使用 COMODO 证书进行签名。
尝试使用这个 URL:
http://timestamp.globalsign.com/scripts/timestamp.dll
相反。
在您的代码中:
$oSignedCode.Timestamp("http://timestamp.globalsign.com/scripts/timestamp.dll")