IdentityServer4 證書不受信任

Jinguagua發表於2020-11-18

在學習IdentityServer4 的時候訪問https://localhost:5001/.well-known/openid-configuration 出現證書不受信任的情況

執行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.

但是依然無效,通過瀏覽器位址列左側檢查證書,發現證書不正確

在“控制皮膚”——“”管理使用者證書“——”個人“——”證書“中發現多個”localhost"的證書將其全部刪除,執行專案,重新生成證書後問題解決。

如果有其它解決方法,歡迎留言

相關文章