14
votes

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.

2

2 Answers

16
votes

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
1
votes

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.