Every time I launch a SSL web site, Visual Studio prompts "The project is configured to use SSL...would you like to trust the IIS Express SSL cert?" Clicking Yes in response and checking "Don't not ask me again" does not unfortunately deter Visual Studio from prompting again next time the site is launched. I tried importing the IIS cert into the Trusted Root Certification Authorities store manually following the approached outlined here. But VS is still prompting on each successive launch.
For local testing, you can enable SSL in IIS Express from Visual Studio. In the Properties window, set SSL Enabled to True. Note the value of SSL URL; use this URL for testing HTTPS connections.
When IIS Express is installed with Visual Studio, the installation process creates an IIS Express Development Certificate that serves as the HTTPS certificate for websites running on IIS Express on the local machine.
I'm not sure what the correct way to fix this is... Adding a local cert to Trusted Root doesn't feel right to me.
I prefer the method provided by Vossekop's Blog
Add this value to the registry
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\WebProjects]
"HideTrustIISCertificatePrompt"=dword:00000001
The technique outlined in the referenced post is to export the IIS Express certificate from the Personal store and then import it into the Trusted Root Certification Authorities store. While manually exporting and then importing didn't work for me, simply dragging the cert from Personal store to the Trusted Root's store did work. Go figure! And this behavior is repeatable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With