摘要:net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified
错误详细信息:
System.InvalidOperationException:“Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.
To generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'.
这是因为net core默认使用的https,如果使用Kestrel web服务器的话没有安装证书就会报这个错
其实仔细看他的错误提示,其中有一句叫你执行一个命令安装证书的语句:
dotnet dev-certs https --trust
在cmd里边运行下就会提示你安装证书,安装成功后就可以成功启动了