Share via


Exporting a Certificate (SP Only)

To share a Smartphone code-signing certificate, you must first export the certificate with its private key into a .pfx file by using Microsoft Management Console. After the certificate has been exported, you must import the .pfx file onto the computer that will share the certificate. You must then copy the associated .cer file onto that same computer.

The following procedure describes how to export a certificate.

To export a certificate

  1. Open the Certificates snap-in. If you have not added the Certificates snap-in for your user account, see Adding the Certificates Snap-In.

  2. In the left pane, expand the Certificates – Current User node.

  3. In the left pane, expand the Personal node.

  4. Select the Certificates subnode.

  5. Select the certificate to export. This certificate might be the default certificate that the eMbedded Visual C++ application created when you first opened the Security tab within the Project Settings dialog box. The default certificate is named %username% default code signing certificate.

  6. On the Action menu, choose All Tasks, and then choose Export. The Certificate Export Wizard opens.

  7. Choose Next to advance to the next screen in the wizard.

  8. Select Yes, export the private key, and then choose Next.

  9. Choose Next (do not change the default settings).

  10. Type and confirm a password (blank passwords are allowed), and then choose Next.

  11. Type a file path and file name (the file name should have either a .pfx extension or no file extension), and then choose Next.

  12. Choose Finish. The certificate has been exported to the file name and path you specified.

  13. Copy the exported .pfx file to the computer on which you intend to use the certificate. You will need to import the certificate into the user's personal store. You can do this by double-clicking the .pfx file in Windows Explorer or opening the .pfx file from the command line. For details regarding importing a certificate, see Importing a Shared Certificate (SP Only).

  14. Copy the .cer file to the computer on which you intend to use the certificate. On the local computer, the .cer file is located at %userprofile%\Microsoft\eVC.

    The eMbedded Visual C++ application creates a .cer file when a new certificate is created; this file contains information related to provisioning a device and must be used in conjunction with the exported certificate file.

See Also

Application Signing Using eMbedded Visual C++ (SP Only) | Certificates

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.