在学习IdentityServer4 的时候访问https://localhost:5001/.well-known/openid-configuration 出现证书不受信任的状况浏览器
执行dotnet dev-certs https --trust学习
Trusting the HTTPS development certificate was requested. A confirmation prompt will be displayed if the certificate was not previously trusted. Click yes on the prompt to trust the certificate.
可是依然无效,经过浏览器地址栏左侧检查证书,发现证书不正确code
在“控制面板”——“”管理用户证书“——”我的“——”证书“中发现多个”localhost"的证书将其所有删除,运行项目,从新生成证书后问题解决。get
若是有其它解决方法,欢迎留言it