How to Export and Import a Private Key Using MMC and IIS Manager?

How to Export and Import a Private Key?

Exporting a Private Key from Windows Server

To export a private key, you must create a .pfx file using the following steps:

1. Create an MMC Snap-in

  • Right-click the Start button and select Run.
  • Type mmc and press OK.
  • In the MMC window, go to File > Add/Remove Snap-in.
  • Choose Certificates, then click Add.
  • Select Computer account, click Next, and choose Local Computer.
  • Click Finish and return to the main console.

2. Export the Certificate

  • Navigate to Certificates > Personal > Certificates in the MMC console.
  • Right-click the target certificate and choose All Tasks > Export.
  • Follow the wizard and select Yes, export the private key. (If unavailable, ensure the private key was marked exportable during creation.)
  • Choose Personal Information Exchange – PKCS #12 (.pfx) and enable Include all certificates in the certification path.
  • Set a secure password for the .pfx file and save it to a desired location.
  • Complete the wizard and confirm export success.

Importing the .pfx File to Another Server

Using MMC

  • Open MMC and navigate to Certificates > Personal.
  • Right-click the folder and choose All Tasks > Import.
  • Select the .pfx file, enter the password, and enable Mark this key as exportable.
  • Choose Automatically select the certificate store and complete the wizard.

Using IIS Manager

  • Open IIS Manager from Administrative Tools.
  • Select the target server in the left menu and choose Server Certificates under Security.
  • From the Actions menu, click Import.
  • Select the .pfx file, enter its password, and allow export if needed.
  • Confirm the import process.

    • Related Articles

    • How to Export Chained Certificate from Browser?

      Exporting a Chained Certificate from Browsers Learn how to obtain a chained SSL certificate using Mozilla Firefox or Google Chrome. Follow these steps for each browser: Mozilla Firefox Open your website in Firefox. Click the lock icon beside the URL ...
    • How to Create PEM File?

      PEM files play a critical role in website security and encrypted communications. Whether you're managing HTTPS certificates, setting up secure email, or working with APIs, understanding how to create and use PEM files is essential for developers and ...
    • DKIM Record

      DKIM, or DomainKeys Identified Mail, is a protocol that enables the sender to append a digital signature to each email, allowing the recipient to authenticate the sender's identity. Essentially, DKIM serves as one of the methods for verifying the ...
    • Understanding the Set-Cookie Header

      Cookies are an essential part of modern web applications. They allow websites to maintain sessions, remember user preferences, and enable authentication across multiple requests. Since HTTP is a stateless protocol, cookies help create a stateful user ...
    • Cross-Origin Resource Sharing (CORS)

      Cross Origin Resource Sharing commonly known as CORS is an important security mechanism used by modern browsers to control how web applications access resources from different domains. In today's web ecosystem many applications interact with APIs, ...