我的 web api 不能使用 HTTPS,所以我尝试运行这个命令:
dotnet dev-certs https --trust
但我收到了这个错误:Trusting the HTTPS development certificate was requested. A confirmation prompt will be displayed if the certificate was not previously trusted. Click yes on the prompt to trust the certificate. There was an error trusting HTTPS developer certificate.
我也尝试清理并创建一个新的
dotnet dev-certs https -v
The HTTPS developer certificate was generated successfully.
但仍然面临同样的问题。我在 CurrentUser\Personal\Certificates 中看不到 localhost 证书
最佳答案
如果您有多个证书,有时会发生这种情况。
关于asp.net-core - asp.net core web api本地https问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60943525/