Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio relentlessly prompts to trust the IIS Express SSL Certificate

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.

like image 742
CalvinDale Avatar asked Jun 09 '14 19:06

CalvinDale


People also ask

How do I enable SSL certificate in Visual Studio?

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.

What is IIS Express Development certificate?

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.


2 Answers

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
like image 154
GoClimbColorado Avatar answered Sep 20 '22 16:09

GoClimbColorado


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.

like image 36
CalvinDale Avatar answered Sep 22 '22 16:09

CalvinDale