Dav*_*veN 5 c# asp.net ssl iis-express .net-core
在首次运行 ASP.NET Core MVC 样板模板 (DotNet Core) 时,我从 Visual Studio 2017 收到以下关于 SSL 证书的错误消息:
"Internal.Cryptography.CryptoThrowHelper.WindowsCryptographicException发生 HResult=0x80070002 Message=系统找不到指定的文件 Source=
StackTrace: at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, String password, X509KeyStorageFlags keyStorageFlags)在 System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags) 在 Microsoft.AspNetCore.Hosting.KestrelServerOptionsHttpsExtensions.UseHttps(KestrelServerOptions options, String fileName, String password) ..."
使用 SSL 的所有其他项目都可以正常工作,我已经仔细检查了我的 localhost 证书是否在本地机器的受信任的根证书颁发机构中并且没有过期。该项目正在运行 IISExpress - 也许它看起来不正确?我不知道。任何想法我哪里出错了?
| 归档时间: |
|
| 查看次数: |
10191 次 |
| 最近记录: |