Fix the IIS 7 "No Private Key" Error Message - SSL.com (2024)

How to correct the "No Private Key" error message in Windows Internet Information Server (IIS).

  • Chris Kemmerer
  • March 10, 2015
  • IIS, SSL/TLS, Troubleshooting, Windows
  • Certutil, Error Message, IIS 7, Microsoft IIS 7, No Private Key

Related Content

Enabling Third-Party Signing Certificates with eSigner Cloud Signing

August 7, 2024

Read More »

Send a Secure Email using a S/MIME Certificate in the new Outlook for Mac

August 7, 2024

Read More »

S/MIME Certificate Management with Microsoft Azure Active Directory and inTune using SSL.com Azure Integration Tool

July 23, 2024

Read More »

Generate a Certificate Signing Request in Azure Key Vault

June 18, 2024

Read More »

Want to keep learning?

Subscribe to SSL.com’s newsletter, stay informed and secure.

Copy article link

This article will show you how to correct the “No Private Key” error message in Windows Internet Information Server (IIS). If you receive this error, it indicates that a previous attempt to import the certificate in IIS failed to include the private key.

To correct this, you will:

  1. Import the certificate into the personal store using Microsoft Management Console (MMC)
  2. Capture the serial number for the certificate in question
  3. Run the certutil program to repair the store
  4. Export the corrected certificate
  5. And finally re-import the certificate via IIS.

Importing the Certificate with MMC

  1. OpenMMC on your computer (you can locate this program bytyping “mmc” in your Windows search bar).
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (1)
  2. Select “File > Add/Remove Snap-in” (or type Control-M). Select “Certificates” and click the Add button.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (2)
  3. Select “Computeraccount” and click Next
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (3)
    …then direct the snap-in to manage the “Local computer” and click Finish.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (4)
  4. Click OK to add the snap-in.
  5. Next, navigate to the “Certificates (Local Computer)> Personal > Certificates” folder.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (5)
  6. Right-click the folder and select “All tasks > Import” from the menu to open the Certificate Import Wizard.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (6)
  7. In the Import Wizard, make sure “Local Machine” is selected and hit Next.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (7)
  8. Locate and designate the target certificate (it should be in the .p7b format), then press Next.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (8)
  9. Set the wizard to place the imported certificates in the “Personal” store. Hit Next to proceed.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (9)
  10. Check the settings, then click Finish to import the certificate.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (10)

Go to top

Capture the Serial Number

  1. Double-click toopen the certificate, then select the “Details” tab to find and capture the serial number.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (11)

Go to top

Run the certutil Program

  1. In order to perform the next step, you will need to open a command line session with administrator privileges. The most straightforward way to do this is to perform a search for “cmd”, then right-click the cmd icon and select “Run as administrator”. (Choose “Yes” if asked if you wish to allow this program to make changes on the computer.)
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (12)
  2. At the command line, enter the following command, using your captured serial number:
    certutil -repairstore my "PLACE_SERIAL_NUMBER_HERE"
    Make certain and place the serial number between the quote marks as shown. **It is best to actually type the serial number as the paste function can sometimes lose a character in the cmd window.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (13)
  3. If successful, this command will return some information about the certificate and a confirmation message.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (14)
  4. Close the command session and refresh MMC.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (15)

Go to top

Export the Corrected Certificate

  1. Right-click the certificate and select “All tasks > Export” to open the Certificate Export Wizard.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (16)
  2. After clicking through the Wizard’s welcome page,make sure that the option is set to “Yes, export the private key” and click Next.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (17)
  3. Choose the format for the exported certificate (here, a PKCS # 12 -encoded, or .PFXfile). Make sure to check the boxes to include all certificates in the path and to export all extended properties, then click Next.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (18)
  4. You will be prompted for a password to protect this certificate bundle (a good idea, since it incorporates your private key). Create and confirm your password, then click Next.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (19)
  5. Select the name and location of the file you are exporting. You may browse to a location you prefer – make sure to save the file with the .pfx extension.

    Note: Including the date is a good way to differentiate this certificate file from other ones.

    Fix the IIS 7 "No Private Key" Error Message - SSL.com (20)
  6. Review the information. If this all looks correct, click Finish.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (21)
  7. You will receive confirmation that the export was successful.
    Fix the IIS 7 "No Private Key" Error Message - SSL.com (22)

Go to top

Re-importing the Certificate with IIS

You will now have a file you can re-import via IIS without throwing the “No Private Key” error. SSL.com has general instructions on how to do this in a separate article here. For our purposes, just remember to choose“Import” instead of “Complete Certificate Request” when processing this certificate and to enter the password when prompted.

Fix the IIS 7 "No Private Key" Error Message - SSL.com (23)
Remember also to set the Type to “https” and the Port to “443” (unless otherwise instructed by your network administrator) when binding the certificate to the site.

Fix the IIS 7 "No Private Key" Error Message - SSL.com (24)

Thank you for choosing SSL.com! If you have any questions, please contact us by email at [email protected], call 1-877-SSL-SECURE, or just click the chat link at the bottom right of this page. You can also find answers to many common support questions in our knowledgebase.

Fix the IIS 7 "No Private Key" Error Message - SSL.com (25)

Stay Informed and Secure

SSL.comis a global leader in cybersecurity, PKI and digital certificates. Sign up to receive the latest industry news, tips, and product announcements fromSSL.com.

Fix the IIS 7 "No Private Key" Error Message - SSL.com (2024)
Top Articles
This Google Adsense Tip Will Save You From Losing Money
4 Reasons Why Your Credit Score Is Important
Weeminuche Smoke Signal
Craigslist Portales
Konkurrenz für Kioske: 7-Eleven will Minisupermärkte in Deutschland etablieren
Ou Class Nav
Western Razor David Angelo Net Worth
Myunlb
Jessica Renee Johnson Update 2023
Ree Marie Centerfold
The Binding of Isaac
Koop hier ‘verloren pakketten’, een nieuwe Italiaanse zaak en dit wil je ook even weten - indebuurt Utrecht
RBT Exam: What to Expect
Current Time In Maryland
Five Day National Weather Forecast
State HOF Adds 25 More Players
Mani Pedi Walk Ins Near Me
Best Forensic Pathology Careers + Salary Outlook | HealthGrad
Zalog Forum
Sni 35 Wiring Diagram
Pinellas Fire Active Calls
Icivics The Electoral Process Answer Key
Joan M. Wallace - Baker Swan Funeral Home
Weldmotor Vehicle.com
Accuweather Minneapolis Radar
University Of Michigan Paging System
Xpanas Indo
Rainfall Map Oklahoma
Alternatieven - Acteamo - WebCatalog
ATM, 3813 N Woodlawn Blvd, Wichita, KS 67220, US - MapQuest
Jeep Cherokee For Sale By Owner Craigslist
O'reilly Auto Parts Ozark Distribution Center Stockton Photos
Kgirls Seattle
Jewish Federation Of Greater Rochester
Dying Light Nexus
Uc Santa Cruz Events
Frommer's Philadelphia & the Amish Country (2007) (Frommer's Complete) - PDF Free Download
Electronic Music Duo Daft Punk Announces Split After Nearly 3 Decades
COVID-19/Coronavirus Assistance Programs | FindHelp.org
Quick Base Dcps
Random Animal Hybrid Generator Wheel
Iupui Course Search
Crystal Glassware Ebay
Kaamel Hasaun Wikipedia
Kate Spade Outlet Altoona
Dineren en overnachten in Boutique Hotel The Church in Arnhem - Priya Loves Food & Travel
Model Center Jasmin
Is TinyZone TV Safe?
The Hardest Quests in Old School RuneScape (Ranked) – FandomSpot
How to Get a Check Stub From Money Network
One Facing Life Maybe Crossword
Cbs Scores Mlb
Latest Posts
Article information

Author: Madonna Wisozk

Last Updated:

Views: 6704

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Madonna Wisozk

Birthday: 2001-02-23

Address: 656 Gerhold Summit, Sidneyberg, FL 78179-2512

Phone: +6742282696652

Job: Customer Banking Liaison

Hobby: Flower arranging, Yo-yoing, Tai chi, Rowing, Macrame, Urban exploration, Knife making

Introduction: My name is Madonna Wisozk, I am a attractive, healthy, thoughtful, faithful, open, vivacious, zany person who loves writing and wants to share my knowledge and understanding with you.