【发布时间】:2020-11-25 16:52:04
【问题描述】:
我正在按照这个解决方案为我的 Webassembly 项目使用证书。 InvalidOperationException: Key type not specified. Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ConfigureSigningCredentials.LoadKey()
如果我使用自我证书,它可以正常工作,但我需要 C.A.证书,我用 Let's Encrypt 创建了它。 如何将 LetsEncrypt 证书添加到 appsettings.json 中?我的新证书没有密码,所以下面的代码不起作用。
"IdentityServer": {
"Key": {
"Type": "File",
"FilePath": "C:\cert.pfx",
"Password": "password123"
}
}
有人可以帮帮我吗?
【问题讨论】:
标签: iis https lets-encrypt asp.net-core-3.1 blazor-webassembly