How to Export Your Code Signing Certificate

After installing your code signing certificate, you may need to export the certificate for use on a different computer, for signing code, etc.

Safari and Chrome
Firefox

 

Safari and Chrome: Exporting Your Code Signing Certificate as a P12 File

If you used Safari or Chrome to install your Code Signing Certificate, the certificate should be located in the login keychain.

  1. Open Keychain Access.

    In the Finder window, under Favorites, click Applications, click Utilities, and then double-click Keychain Access.

    Mac - Finder

  2. In the Keychain Access window, under Keychains, click login, under Category, click Certificates, and then, select your code signing certificate and the DigiCert Intermediate Certificate (i.e. DigiCert SHA2 Assured ID Code Signing CA).

    Note: Select the intermediate certificate that you installed to remove the “This certificate was signed by an unknown authority” warning message. See Removing the “This certificate was signed by an unknown authority” Warning Message.

    Mac - Keychain Access

  3. In the Keychain Access toolbar, click File > Export Items.

    Mac - Keychain Access

  4. In the “Export” window, do the following:

    1. In the File Format drop-down list select Personal information Exchange (.p12).

      Note: A .p12 file uses the same format as a .pfx or PKCS12 file.

    2. In the Save As box, click the down arrow and go to where you want to save your code signing certificate (w/private key) .p12 file.

      Make sure to save the .p12 file in a location that you will remember and to which you have permissions.

    3. Name the certificate .p12 file (i.e. myCodeSigningCertificate) and click Save.

    Mac - Export certificate

  5. In the “Password” window, in the Password and Verify boxes, create and verify your password and then, click OK..

    Mac - Export password

  6. In the “Export Key” window, in the Password box, enter your login keychain password so that the keychain can export the private key with the code signing certificate and then, click Allow.

    Mac - Export password

  7. Your code signing certificate should now be available in the destination directory you selected as a .p12 file. For code signing instructions, please see our Code Signing Support & Tutorial page.

 

Firefox: Exporting Your Code Signing Certificate as a PKCS12 File

  1. In Firefox, go to Preferences.

    Firefox - Preferences

  2. In the Preferences window, click Advanced, next, click Certificates, and then, click View Certificates.

    Firefox - Options

  3. In the Certificate Manager window, click Your Certificates, select your code signing certificate and then, click Backup.

    Firefox - Certificate Manager

  4. In the File Name to Backup window, do the following:

    1. In the Format drop-down list select PKCS12 Files.

      Note: A PKCS12 file uses the same format as a .pfx or .p12 file.

    2. In the Save As box, click the down arrow and go to where you want to save your code signing certificate (w/private key) PKCS12 file.

      Make sure to save the PKCS12 file in a location that you will remember and to which you have permissions.

    3. Name the certificate PKCS12 file (i.e. myCodeSigningCertificate) and click Save.

    Firefox - Certificate Manager

  5. In the Certificate Manager window, create a Certificate backup password and then, click OK.

    Firefox - Certificate Manager

  6. When you receive the “Successfully backed up your security certificate(s) and private key(s)” message, click OK.

    Your code signing certificate should now be available in the destination directory you selected as a PKCS12 file. For code signing instructions, please see our Code Signing Support & Tutorial page.


Get code signing certificates for just $178/year

Buy Now