November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

IIS 7.5 Export the Private key

Overview: Migrating your SSL certificate from one Windows server to another Windows server will require you to export and then import your SSL key pair from server A to server B using a PFX backup file.

A. To Export a Server Certificate

  1. In the Run dialog box, type mmc, and then click OK. The Microsoft Management Console (MMC) appears.
  2. If you do not have Certificate Manager installed in the MMC, you’ll need to install it.
    1. On the File menu, click Add/Remove Snap In
    2. Click Add and then Select Certificates from the Available Standalone Snap-ins dialog box and click Add
    3. Select Computer Account and then Local Computer
    4. The Certificate Manager MMC has been installed
  3. In the console tree in the left-hand pane expand the Certificates (Local Computer) node, and then the Personal node. Note that to view certificates in the local machine store, you must be in the Administrator role. export_import_6-4
  1. Right-click the certificate you want to export, click All Tasks, and click Export to start the Certificate Export Wizard.
  2. Click Next.
  3. On Export Private Key, click Yes to export the private key.Important: You must export the private key along with your certificate for it to be valid on your target server. Otherwise, you will have to request a new certificate for the target server.
  4. In the Export File Format dialog box, click the format you want for the certificate. If the certificate has already been formatted, that format is selected as the default (should be .pfx). Click Next.Do not select Delete the private key if export is successful, because this will disable the SSL site that corresponds to that private key.

    Select the “include all certificates in the certification path if possible” checkbox.certificate_export_wizard

 

  1. Continue to follow steps in the wizard, and enter a password for the certificate backup file when prompted. Using a strong password is highly recommended because it ensures that the private key is well protected.
  2. Type the name of the file you want to export, or click Browse to search for the file. Click Next.
  3. Click Finish to complete the Certificate Export Wizard.

B. To Import a Server Certificate

  1. In the Run dialog box, type mmc, and then click OK. The Microsoft Management Console (MMC) appears.
  2. If you do not have Certificate Manager installed in the MMC, see step 2 above.
  3. In the console tree in the left-hand pane expand the Certificates (Local Computer) node, and then the Personal node.
  1. export_import_13
    1. Right-click on Certificates, click All Tasks, and click Import to start the Certificate Import Wizard.
    2. Click Next.
    3. Enter the password used when the PFX file was exported and check the Mark the private key as exportable checkbox and click Next.
    4. Select Place all certificates in the following store: Personal and click Next.
    5. Click Finish to complete the Certificate Import Wizard.

    How to assign an Imported SSL Certificate to a Web Site in IIS

    1. Now the SSL keys are on the target server. Next we assign the certificate to the site in IIS.
    2. Open the Internet Information Services (IIS) Manager. From the Start button select Programs > Administrative Tools > Internet Information Services Manager.
    3. In IIS Manager, double-click the local computer, and then double-click the Web Sites folder.
    4. Right-click the Web site for which you want to assign the imported certificate, and then click Properties. By default it will be Default Web Site, yours may be different.
  2. iis_default_web_site
    1. Select the Directory Security tab and click Server Certificate in the Secure communications section.
    2. Click Next in the Welcome to the Web Server Certificate Wizard window.
    3. Select Assign an existing certificate, Click Next.
    4. Select the certificate from the list and finish the wizard.
    5. Stop, then Start the web server for that site.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>