Search code examples
certificateinno-setupsetup-deploymentcode-signing-certificate

How to Sign .exe using .crt or .cer file. I ONLY have .crt and .cer files issued by Comodo


I ONLY have .crt file with me which I purchased from Comodo. No private key or any thing. How can I use this to sign my code and get rid of "publisher unknown" issue in my installer. I have used Inno-Setup for creating the installer too. Code is in C Sharp. I tried to use sign tool and openssl but I don't have any other file than this user.crt file. I just can get .cer format using .crt and thats all. Appreciate any help


Solution

  • You cannot sign files with a public key only.

    You need the private key.

    If it were possible to sign files with a public key only, anyone could sign malicious content with your public key.