Thursday, March 24, 2016

Issue with IIS Express in VS

Issue:
You cannot browse the site from VS if using https and iisexpress.

Few Tips

use command netsh http show sslcert > sslcert.txt 
and find the port of your app.
see the hash of the certificate. now to go mmc -- certificate snap --> local machine and personal.
find the localhost - iis development certificate and see the hash of it.
make sure that hash of the certificate is same in the sslcert.txt.
if not then you need to delete the the http entry and add it back.
here is how
netsh http delete sslcert ipport=0.0.0.0:44303
Use Your port above.
netsh http add sslcert ipport=0.0.0.0:44303 appid={214124cd-d05b-4309-9af9-9caa44b2b74a} certhash=38b305a5d21cba8bcb45fa03069ad4b6940097f9


Use hash of your certificate.
and app id is a new guid.

It should work after this.



No comments:

Post a Comment