剑轩

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

电脑版发表于:2019/2/12 10:11


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

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

dotnet dev-certs https --trust


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







关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢