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
Drone Jammers: How They Work, Why They Exist, and Are They Legal? - BlueTechExports - blog
DIY Pipe Cleaner Bubble Wands
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
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.