[英]IIS Express Debugging with SSL Issues
I have a vanilla MVC project that I am attempting to run using HTTPS. 我有一个尝试使用HTTPS运行的普通MVC项目。 I am getting an error back from Chrome to the effect of "ERR_SSL_PROTOCOL_ERROR".
我从Chrome收到一个错误,返回到“ ERR_SSL_PROTOCOL_ERROR”的效果。 I have "SSL Enabled" set to true and when I debug the application, the project URL set to https://localhost:44333/ does load in the browser window as expected.
我将“已启用SSL”设置为true,并且在调试应用程序时,设置为https:// localhost:44333 /的项目URL确实会按预期加载到浏览器窗口中。
I have spent almost 2 days trying to figure this issue out to no avail. 我花了将近2天的时间来解决这个问题,但没有成功。 I have uninstalled IIS Express 10 twice, repaired Visual Studio 2015, and followed directions on various blog posts like this one .
我已经卸载了IIS快递10次,修复的Visual Studio 2015年,并遵循各种博客帖子方向像这样的 。
I have looked in my certmgr.msc too and I cannot find a localhost Trusted Root Certificate Authority under "Trusted Root Certificate Authority > Certificates" either. 我也查看了certmgr.msc,也无法在“受信任的根证书颁发机构>证书”下找到本地主机受信任的根证书颁发机构。 I am not sure if there is suppossed to be a cert there or not but I thought that info might be helpful to anyone that can point me in the right direction.
我不确定那里是否有证书,但我认为信息对任何可以向我指出正确方向的人都可能有所帮助。
Any ideas on what could be going on? 关于会发生什么的任何想法?
I found out that I had two IIS Express Certificates installed. 我发现我已经安装了两个IIS Express证书。 I followed the following thread that helped me solve the issue I was having...
我遵循了以下帮助我解决问题的线程...
How do I fix a missing IIS Express SSL Certificate? 如何修复丢失的IIS Express SSL证书?
I had a similar problem, the cause was a certificate installed on machine level (which makes sense) and not for my user. 我遇到了类似的问题,原因是在计算机级别安装了证书(这很有意义),而不是对我的用户而言。 I had to run MMC as administrator to delete them from the personal store (localMachine).
我必须以管理员身份运行MMC才能从个人存储(localMachine)中删除它们。
After that repairing IIS sorted the problems. 之后,修复IIS对问题进行了排序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.