Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found 解决办法

问题


每次vs重启都提示安装证书,即使执行dotnet dev-certs https --clean,dotnet dev-certs https -t然后重启vs也不行。

环境


win10, vs2019

解决办法


  1. 运行输入certmgr.msc
  2. 在个人,受信任的根证书颁发机构内删除颁发给localhost的所有证书
  3. 执行dotnet dev-certs https -t
  4. 重启vs即可
posted @ 2021-01-09 09:01  pojianbing  阅读(1173)  评论(0)    收藏  举报