Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL Connection / Connection Reset with IISExpress

I'm using the new Visual Studio 2013 with IISExpress for the first time (previously used ASP.net Development server on VS2010). I'm running into issues trying to debug my project.

This is what I see in Chrome:

Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have. Error code: ERR_SSL_PROTOCOL_ERROR

I updated my Properies -> web file so that the Project Url uses a https URL now. However, after doing that, I now get a new error when launching:

The connection to localhost was interrupted. Error code: ERR_CONNECTION_RESET

Thanks

like image 456
Kevin Avatar asked Oct 27 '22 15:10

Kevin


People also ask

How do I fix SSL connection error in Visual Studio?

Open Visual Studio and open the solution containing the web project you'd like to run in IIS Express with SSL. Verify that SSL Enabled is set to True . If you are working with a web project for which SSL has not yet been enabled, set SSL Enabled to True .

How do I unblock SSL connection?

Go to Chrome settings, type “Network” and click on the “Change Proxy Settings” button. Go to the “Security” tab and drag the slider down until you see “Medium-high” security. Click “Apply” and “Ok”. Find the “Content” tab, click on the “Clear SSL State” button, click “Apply”, “Ok” and restart your browser.


1 Answers

I was getting ERR_CONNECTION_RESET because my Visual Studio 2013/IIS Express configured app port number was NOT in the range :44300-:44398. (I don't recall having to dismiss any warnings to get out of that range.) Changing the port number to something in this range is all I had to do to make it work.

I noticed this after reviewing the netsh http show sslcert > sslcert.txt output and something clicking with stuff I read recently about the port numbers.

like image 465
Jason Kleban Avatar answered Oct 29 '22 04:10

Jason Kleban