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 Support@SSL.com, 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
Strategic Alliances
Keeper Encryption and Security Model Details | English
Navicent Human Resources Phone Number
9.4: Resonance Lewis Structures
Food King El Paso Ads
Part time Jobs in El Paso; Texas that pay $15, $25, $30, $40, $50, $60 an hour online
How to Watch Braves vs. Dodgers: TV Channel & Live Stream - September 15
Devourer Of Gods Resprite
Amateur Lesbian Spanking
Snowflake Activity Congruent Triangles Answers
Springfield Mo Craiglist
Huge Boobs Images
Dexter Gomovies
272482061
House Of Budz Michigan
Char-Em Isd
Uktulut Pier Ritual Site
All Obituaries | Buie's Funeral Home | Raeford NC funeral home and cremation
Mychart Anmed Health Login
Walmart Car Department Phone Number
Blue Rain Lubbock
Rqi.1Stop
Conan Exiles Sorcery Guide – How To Learn, Cast & Unlock Spells
8005607994
Understanding Gestalt Principles: Definition and Examples
48 Oz Equals How Many Quarts
Sessional Dates U Of T
Suspiciouswetspot
Victory for Belron® company Carglass® Germany and ATU as European Court of Justice defends a fair and level playing field in the automotive aftermarket
Giantbodybuilder.com
Stockton (California) – Travel guide at Wikivoyage
Trinket Of Advanced Weaponry
Ts Modesto
Rays Salary Cap
Publix Daily Soup Menu
Eero Optimize For Conferencing And Gaming
Utexas Baseball Schedule 2023
Max 80 Orl
Bratislava | Location, Map, History, Culture, & Facts
AsROck Q1900B ITX und Ramverträglichkeit
New Gold Lee
Craigslist Central Il
Is Ameriprise A Pyramid Scheme
2Nd Corinthians 5 Nlt
Advance Auto.parts Near Me
705 Us 74 Bus Rockingham Nc
Wood River, IL Homes for Sale & Real Estate
Diario Las Americas Rentas Hialeah
The Plug Las Vegas Dispensary
Compete My Workforce
When Is The First Cold Front In Florida 2022
Yoshidakins
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.