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 ...
    • Cross-Origin Resource Sharing (CORS)

      Cross-Origin Resource Sharing (CORS) Header Cross-Origin Resource Sharing (CORS) is a critical web security feature that allows servers to specify who can access their resources and how those resources can be accessed. By defining CORS policies, you ...
    • Content Security Policy (CSP)

      Content Security Policy (CSP) Header The Content Security Policy (CSP) header is a robust web security feature designed to prevent a variety of attacks, including Cross-Site Scripting (XSS), clickjacking, and other code injection threats. By defining ...
    • DMARC Record and Configuration in VergeCloud User Panel

      DMARC, which stands for Domain-based Message Authentication, Reporting, and Conformance, is a crucial email authentication protocol provided by VergeCloud. It leverages two existing mechanisms, SPF (Sender Policy Framework) and DKIM (DomainKeys ...