IIS Express 中的 SSL 证书失败
SSL Certificate failing in IIS Express
我希望有人能对这种情况有所了解。我有一个 WEB API,我在 IIS Express 中是 运行。我在启用 SSL 的情况下使用它。我有一个这样调用它的控制台应用程序:
直到今天,这一切都运行良好。客户端在尝试连接时突然抛出异常:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
我已经检查并确保 IIS Express 开发证书在个人证书下已到位。我还修复了 IIS Express。如果我将 URL 放入 Internet Explorer,我也不会遇到这个问题。当我通过普通 HTTP 连接到 WEB API 时没有问题。是什么让这看似无缘无故开始发生?
Misha Beskin 对此的回答 question 帮我解决了这个问题。仍然不知道是什么导致它一开始就搞砸了。
After spending a lot of time for me the solution was pretty simple
I just opened the Certmgr.msc ---> deleted the localhost certificate from the Trusted Root certification authorities.
Then opened my solution (after I had run the identity sever) clicked run the visual studio asked fro me if I want generate new certificate to iis express (ssl), I had clicked yes and then it started to work properly:)
我希望有人能对这种情况有所了解。我有一个 WEB API,我在 IIS Express 中是 运行。我在启用 SSL 的情况下使用它。我有一个这样调用它的控制台应用程序:
直到今天,这一切都运行良好。客户端在尝试连接时突然抛出异常:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
我已经检查并确保 IIS Express 开发证书在个人证书下已到位。我还修复了 IIS Express。如果我将 URL 放入 Internet Explorer,我也不会遇到这个问题。当我通过普通 HTTP 连接到 WEB API 时没有问题。是什么让这看似无缘无故开始发生?
Misha Beskin 对此的回答 question 帮我解决了这个问题。仍然不知道是什么导致它一开始就搞砸了。
After spending a lot of time for me the solution was pretty simple
I just opened the Certmgr.msc ---> deleted the localhost certificate from the Trusted Root certification authorities.
Then opened my solution (after I had run the identity sever) clicked run the visual studio asked fro me if I want generate new certificate to iis express (ssl), I had clicked yes and then it started to work properly:)