Blog: How to Create a Self Signed Certificate For Your Local IIS Website (2024)

Blog: How to Create a Self Signed Certificate For Your Local IIS Website (1)

When developing websites or APIs that use https on your local machine, you may find that the IIS Development Certificate isn't good enough and you might get an error like this:

Blog: How to Create a Self Signed Certificate For Your Local IIS Website (2)

ERR_CERT_COMMON_NAME_INVALID

In some cases - your browser may let you ignore the error - but you'll still be warned while using the site - that the certificate isn't valid:

Blog: How to Create a Self Signed Certificate For Your Local IIS Website (3)

It is generally a good idea to create a self signed certificate for each of your local sites. Modern browsers are becoming more strict on invalid SSL certificates and it is good practice to test your websites with a valid SSL certificate during development.

This blog post will give you step by step instructions and show you just how easy it is to create and use self signed certificates.

Creating the certificate

First, open up Powershell and Run it as an Administrator.

  • Windows button
  • Type 'Powershell'
  • Right click on the app and choose 'Run as Administrator'

Next you want to copy and paste this into powershell but don't hit enter yet:

New-SelfSignedCertificate -DnsName "mydomain.local" -CertStoreLocation "cert:\LocalMachine\My"

Where it says "mydomain.local", update it to be the domain name of the local IIS website and hit enter.

Blog: How to Create a Self Signed Certificate For Your Local IIS Website (4)

This will create a self signed certificate for you to use, but before you can use it, we need to move it into Trusted Root Certification Authorities Certificates.

Allowing the certificate to be used

Open up Managed Computer Certificates.

  • Press the windows button on your keyboard
  • Type 'cert'
  • Click on 'Manage Computer Certificates'
  • Under Personal, click on the Certificates folder
  • Find the certificate you created
  • Right click on it and choose 'Copy'
  • Then under Trusted Root Certification Authorities right click on the Certificates folder and choose 'Paste'

Blog: How to Create a Self Signed Certificate For Your Local IIS Website (5)

Using the certificate

Now your certificate will be available for you to pick in IIS.

  • Open IIS
  • Go to the website you want to add the certificate to.
  • Click on Bindings…
    • If you don't yet have a binding set up for https, click on Add…
    • In the type choose 'https'
    • Leave IP address as 'All Unassigned' and Port as '443'
    • In the host name, enter the url which you got the certificate for.
  • Tick the box which says 'Require Server Name Identification (SNI)
  • The in the SSL certificate dropdown you can choose the certificate you created.
  • After that, click on OK and you should be all set.

Blog: How to Create a Self Signed Certificate For Your Local IIS Website (6)

This blog post - By Paul Seal

Our Umbraco knowledge base is available to support customers and contains hundreds of articles similar to this, covering Umbraco, Azure and ASP.NET development - please contact us if you are interested in a support agreement with Moriyama.

Blog: How to Create a Self Signed Certificate For Your Local IIS Website (2024)
Top Articles
Football: Defensive Formations
Gold Vs Mutual Funds - Which Is A Better Investment Option? | Tata Capital
3 Tick Granite Osrs
Top 11 Best Bloxburg House Ideas in Roblox - NeuralGamer
Gabriel Kuhn Y Daniel Perry Video
Here are all the MTV VMA winners, even the awards they announced during the ads
South Park Season 26 Kisscartoon
San Diego Terminal 2 Parking Promo Code
Back to basics: Understanding the carburetor and fixing it yourself - Hagerty Media
Turbocharged Cars
Blue Beetle Showtimes Near Regal Swamp Fox
Craigslist Pets Athens Ohio
National Office Liquidators Llc
Napa Autocare Locator
Fraction Button On Ti-84 Plus Ce
Satisfactory: How to Make Efficient Factories (Tips, Tricks, & Strategies)
Long Island Jobs Craigslist
Shopmonsterus Reviews
Wbiw Weather Watchers
Sullivan County Image Mate
Mj Nails Derby Ct
The Banshees Of Inisherin Showtimes Near Broadway Metro
New Stores Coming To Canton Ohio 2022
Mississippi Craigslist
Dl.high Stakes Sweeps Download
Sam's Club Gas Price Hilliard
Duke Energy Anderson Operations Center
Ofw Pinoy Channel Su
Frommer's Belgium, Holland and Luxembourg (Frommer's Complete Guides) - PDF Free Download
Shiftwizard Login Johnston
Matlab Kruskal Wallis
Deleted app while troubleshooting recent outage, can I get my devices back?
Cvb Location Code Lookup
Domina Scarlett Ct
Kgirls Seattle
The Boogeyman Showtimes Near Surf Cinemas
Craigslist En Brownsville Texas
How To Upgrade Stamina In Blox Fruits
Ferguson Employee Pipeline
Bartow Qpublic
Ig Weekend Dow
Seven Rotten Tomatoes
Blackwolf Run Pro Shop
Xre 00251
Cult Collectibles - True Crime, Cults, and Murderabilia
Laura Houston Wbap
Minute Clinic Mooresville Nc
Phunextra
Southern Blotting: Principle, Steps, Applications | Microbe Online
Affidea ExpressCare - Affidea Ireland
Comenity/Banter
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 6166

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.