signtool failing to dual sign SHA2 and SHA1 with timestamps

前端 未结 7 1951
一个人的身影
一个人的身影 2020-12-08 00:45

We need to dual sign our binaries with SHA1 and SHA2 using signtool.exe, our certificate supports 256-bit SHA2.

Using the Windows 8 SDK\'s signtool:

e.g.:

7条回答
  •  余生分开走
    2020-12-08 01:48

    I also get the above error, however It works with the osslsigncode utility when using the '-nest' option:

    osslsigncode sign -pkcs12 cert1.pfx -h sha1 -t http://timestamp.verisign.com/scripts/timestamp.dll -in original.exe -out intermediate.exe
    osslsigncode sign -pkcs12 cert2.pfx -nest -h sha1 -t http://timestamp.verisign.com/scripts/timestamp.dll -in intermediate.exe -out final.exe
    

    The official project is for Unix, however I've knocked up my own windows fork.

提交回复
热议问题