Code signing with signtool fails due to private key filter

后端 未结 5 1256
北荒
北荒 2021-02-05 06:35

While trying to sign some installer created by the company I am working for I encountered an error, which I have not been able to solve. I am using the same certificate which ha

5条回答
  •  北海茫月
    2021-02-05 07:04

    In order to sign a file you need to have the certificate's private key, which is not included in the *.cer file you copied from the Windows 7 machine. To export the certificate with its private key you can follow the instructions supplied here.

    Do note that you'll only be able to export the private key if the certificate was set to allow exporting it when it was created (by passing -pe to makecert)

提交回复
热议问题