Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to use a real certificate with IIS Express

Generate a certificate and store it in the local computer's certificate store.

Then, use netsh to assign the certificate to a port and application.

netsh http delete sslcert ipport=<hostname>:<port>
netsh http add sslcert ipport=<hostname>:<port> certhash=<certificate-thumbprint> appid=<appid>

For example:

netsh http delete sslcert ipport=
netsh http add sslcert ipport= certhash=E8C4DF4BD68DB3735E874B68B4F3CAAABF8823AC appid={214124CD-D05B-4309-9AF9-9CAA44B2B74A}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.