Search code examples
jarcertificatessl-certificateexecode-signing

Can I sign .exe files using .spc and .pem files?


What are the steps to sign a .exe file?

I already have a PKCS #7 Certificate (.spc file*), because I've used it to sign .jar files
*but it was requested using the keytool with a .csr file as follows http://help.godaddy.com/article/4780

The specific question is:
How do I sign .exe files? and if this .spc file works or I need a new one?

Thanks in advance


Solution

  • All you need is OpenSSL and signtool.exe.

    1. Combine the certificate and private key files into a PFX file.
    2. Use the signtool.exe to sign your code.