Dual-sign .cat file has error “No signature was present in the subject”

◇◆丶佛笑我妖孽 提交于 2019-12-04 10:05:29

It does seem that .cat files cannot be dual signed. My solution was to sign the .cat file using a SHA256 certificate, but with signtool command line options to create a SHA1 signature. The .sys file associated with the driver I was still able to dual sign. This seems to be working in all the scenarios I need.

Is this only a visual/cosmetic issue or does your driver installation fail ?

A probably better and more solid alternative to dual-signing is an installer that includes both sha1- and sha2-signed binaries which installs the correct set depending on the os version. Since the major parts of the binaries are identical the compressed installer size also won't increase too much.

cat files shall be double signed using the following procedure:

inf2cat.exe /driver:__Path__ /os:__WindowsVersions__

signtool.exe sign /v /ac __RootCert__ /t __TimeStampLink__ /sha1 __Sha1ThumbPrint__ __CatFile__

signtool.exe sign /v /ac __RootCert__ /tr __TimeStampLink__ /td sha256 /fd sha256 /as /sha1 __Sha2ThumbPrint__ __CatFile__

Use the signing tools from windows kit v10.x (or above) to perform this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!