Be sure to remove all previous "localhost" certificates, as they may conflict with the one that IIS Express created. I had the same error (ERR_SSL_PROTOCOL_ERROR), and it took me many hours to finally understand it, having tried many βsolutionsβ. My mistake was that I created my own localhost certificate, and there were two of them. I had to uninstall both and upgrade IIS Express.
Here is how you can verify and remove the "localhost" certificate:
- In the Start field, enter β mmc.exe
- File β Add / Remove Snap-in ...
- Click Certificates β Add> β Computer Account β Local Computer
- Check Certificates> Personal> Certificates
- Ensure that the existing localhost certificate has the friendly name IIS Express Development Certificate. If not, delete it. Or if several, delete everything.
In Visual Studio, select the tab "Project" and "Properties", enable SSL = true. Save, build and run. IIS Express will create a new "localhost" certificate.
Note. If this does not work, try the following: be sure to disable IIS Express in the VS project and stop the entire running application before deleting the localhost certificate. Alternatively, you can go to "Control Panel> Programs" and "Restore IIS Express."
ShaTin Apr 02 '14 at 17:33 2014-04-02 17:33
source share