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
12 THINGS TO CHECK BEFORE RENTING A CAR | Eurocars Car Rentals
How To Get Military Discount Car Rental – DMDC Military Verification
Diario Las Americas Rentas Hialeah
Riverrun Rv Park Middletown Photos
Metra Union Pacific West Schedule
123 Movies Black Adam
Live Basketball Scores Flashscore
Lifewitceee
Pinellas County Jail Mugshots 2023
Greedfall Console Commands
35105N Sap 5 50 W Nit
Tribune Seymour
Hallelu-JaH - Psalm 119 - inleiding
The Binding of Isaac
Aktuelle Fahrzeuge von Autohaus Schlögl GmbH & Co. KG in Traunreut
Chile Crunch Original
Hell's Kitchen Valley Center Photos Menu
Arboristsite Forum Chainsaw
Bfg Straap Dead Photo Graphic
Clear Fork Progress Book
The Exorcist: Believer (2023) Showtimes
The Grand Canyon main water line has broken dozens of times. Why is it getting a major fix only now?
Azur Lane High Efficiency Combat Logistics Plan
Magic Seaweed Daytona
Mybiglots Net Associates
Wisconsin Volleyball Team Boobs Uncensored
Bocca Richboro
Reicks View Farms Grain Bids
California Online Traffic School
D2L Brightspace Clc
Blackboard Login Pjc
Watson 853 White Oval
Rays Salary Cap
آدرس جدید بند موویز
Sinai Sdn 2023
Space Marine 2 Error Code 4: Connection Lost [Solved]
Mta Bus Forums
Ise-Vm-K9 Eol
Lovein Funeral Obits
Rhode Island High School Sports News & Headlines| Providence Journal
Wunderground Orlando
Carroll White Remc Outage Map
Beaufort SC Mugshots
Conan Exiles Armor Flexibility Kit
3500 Orchard Place
Hillsborough County Florida Recorder Of Deeds
Take Me To The Closest Ups
Enjoy Piggie Pie Crossword Clue
Grace Charis Shagmag
Heisenberg Breaking Bad Wiki
Honeybee: Classification, Morphology, Types, and Lifecycle
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.