Monthly Archives: April 2017

Creating a self signed SSL certificate on Windows using PowerShell

Run this PowerShell command as Administrator:

New-SelfSignedCertificate –DnsName * –CertStoreLocation cert:\LocalMachine\My

Open Manage Computer Certificates (typing certificates in the Start menu should find it)

Open Personal\Certificates

Find the * certificate that has an expiration date of a year from today. Delete any others for * to avoid confusion later on.

Right-click and choose Copy.

Navigate to Trusted Root Certification Authorities\Certificates

Right-click and paste.

Restart your machine.

In IIS, update the bindings for all sites to use the SSL certificate created above, it will be called *