Tutorial on Exporting / Importing Windows Authenticode Certificates in Windows
How to Export Authenticode Code Signing Certificates from Windows Computers
Thanks to the DigiCert Certificate Management Utility, Exporting Microsoft Authenticode Code Signing Certificates to additional computers is a cinch. To let the exporting begin, just follow the steps below.
-
Download and run the DigiCert Certificate Management Utility on the computer that you have the code signing certificate installed to the current user's Windows User Account.
-
Select your certificate and click Export.
-
Select Yes, export the private key then choose pfx file, and check
Include all certificates in the certification path if possible.
-
Create a password for the certificate file, then confirm it and click Next to go to the next step.
Note: This password will need to be re-entered when importing the pfx file onto another Windows computer.
-
Save your authenticode certificate as a pfx file and click Finish.
Importing and Code Signing Instructions for Authenticode Certificates in Windows
-
Importing the certificate is pretty easy. You'll just have to copy the 'YourCompanyCodeSigning.pfx' to the new computer, then double-click on it and enter the password to import it.
-
After importing your certificate you can sign your files using the following command from an elevated command prompt:
signtool sign /t http://timestamp.digicert.com /a "c:\path\to\FileToSign.exe"
Troubleshooting
-
After Importing your Certificate to the Certificate Store you can verify that it's listed correctly by running the DigiCert Certificate Utility on your computer.
Your Certificate should then show up in the Code-Signing Certificates section. -
Managing your Certificate from the MMC Console:
You can also verify the code signing certificate has been installed for the current user by running the Certificate Manager snap-in (certmgr.msc) in MMC.
To open the Snap-In goto Start > Run > type certmgr.msc and press Enter. Expand 'Personal' > 'Certificates' and you should see your certificate listed.
You can verify that your certificate was imported correctly using either of the following 2 methods: