July 08, 2009

Q: How can I export an X.509 certificate and the associated private key from my old laptop and import it on my new one?

RSS
Subscribe to Windows IT Pro | See More Certificates Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A: In Windows, X.509 certificates and private keys can be exported using the Certificates Microsoft Management Console snap-in (certmgr.msc). Follow these steps to export a certificate and its associated private key from your old laptop.

  1. Start the Certificates snap-in.
  2. In the snap-in’s console tree, expand the Personal container, and click the Certificates subcontainer.
  3. In the details pane, right-click the certificate you want to export, select All Tasks, and then click Export… This action will start the Certificate Export Wizard.
  4. On the Welcome to the Certificate Export Wizard page, click Next.
  5. On the Export Private Key page, click Yes, Export the Private Key, and then click Next.
  6. On the Export File Format page, click Personal Information Exchange – PKCS#12, and select the following checkboxes (shown below for Windows Vista):
  7. On a Windows 2000 or Windows XP machine:
    • Include All Certificates in the Certification Path if possible
    • Enable Strong Protection
    • Delete the Private Key if the Export is Succesful
    On a Windows Vista machine:
    • Include all Certificates in the Certification Path if possible.
    • Delete the Private Key if the Export is Successful.
    • Export all Extended Properties.



  8. On the Export File Format page, click Next.
  9. On the Password page, type a password to secure the access to your certificate and private key data in the PKCS#12 file and click Next.
  10. On the File to Export, type a path where you will export the file, preferably a floppy disk or a USB drive, and click Next.
  11. On the Completing the Certificate Export Wizard page, click Finish.
  12. In the Certificate Export Wizard message box telling whether the export was successful, click OK.

To import a certificate and private key on your new laptop, follow these steps:

  1. Copy the PKCS#12 file (it has a pfx extension) from the floppy disk or USB drive to your new laptop.
  2. Double-click the pfx file. This will start the Certificate Import Wizard.
  3. On the Welcome to the Certificate Import Wizard page, click Next.
  4. On the File to Import page, double-check the file name and path of the pfx file you want to import, and click Next.
  5. On the Password page, enter the password you used to secure the pfx file and check the “Mark this key as exportable” box. Then click Next.
  6. On the Certificate Store page, select the Automatically select the Certificate store based on the type of certificate option (this is the default), and click Next.
  7. On the Completing the Certificate Wizard Import Wizard page, click Finish.
  8. In the Certificate Import Wizard message box telling whether the import was successful, click OK.

End of Article



Windows IT Pro Community
Blogs





Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


SQL Server Magazine Office & SharePoint Pro DevProConnections asp.netPRO ITTV
IT Library Technology Resource Directory Connected Home Windows SuperSite
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc.     Terms of Use | Privacy Statement