How to Export Your Code Signing Certificate

User-added image

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.

    User-added image

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

     

    User-added image

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

    User-added image

  3. 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.

    User-added image

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

    User-added image

  5. 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.

    User-added image

  6. Your code signing certificate should now be available in the destination directory you selected as a .p12 file. 

 

Firefox: Exporting Your Code Signing Certificate as a PKCS12 File

  1. In Firefox, go to Preferences.

    User-added image

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

    User-added image

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

    User-added image

  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.

    User-added image

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

    User-added image

  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.