首页 > 其他分享 > Unable to configure HTTPS endpoint

Unable to configure HTTPS endpoint

时间:2022-10-25 17:35:36浏览次数:50  
标签:endpoint configure HTTPS Unable https dotnet

ASP.net 开发完成以后,目标机上只需要安装aspnetcore-runtime  加 dotnet-runtime 就可以跑起来了,

但是如果还采用了https的方式,此时发现

System.InvalidOperationException: Unable to configure HTTPS endpoint. No server certificate was 。。。

就是https开启的时候提示出错了。。

这时安装dotnet-sdk 

  1. dotnet dev-certs https --clean
  2. dotnet dev-certs https -t

清除本地证书,再加一个本地证书解决。

但是好恶心。。。要使用dotnet 不得不安装SDK。。。

标签:endpoint,configure,HTTPS,Unable,https,dotnet
From: https://www.cnblogs.com/stweily/p/16825623.html

相关文章