net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified

这是因为net core2.1默认使用的https,如果使用Kestrel web服务器的话没有安装证书就会报这个错

net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified

其实仔细看他的错误提示,其中有一句叫你执行一个命令安装证书的语句:

dotnet dev-certs https --trust

 

在cmd里边运行下就会提示你安装证书,安装成功后就可以成功启动了

net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified

net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified

上一篇:net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified


下一篇:实现一个简单的Http代理服务器