【问题标题】:Use of LetsEncrypt certificate in Blazor Webassembly project published on ISS in Windows Server在 Windows Server 的 ISS 上发布的 Blazor Webassembly 项目中使用 LetsEncrypt 证书
【发布时间】: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


    【解决方案1】:

    我通过 Let's Encrypt 工具创建“具有高级选项的新证书”而不是“创建新证书”来解决,这样我可以设置在我的 .NET Core 项目中使用证书所需的密码。

    【讨论】:

      猜你喜欢
      • 2021-10-18
      • 2020-09-20
      • 2020-10-15
      • 2017-03-18
      • 1970-01-01
      • 2020-11-09
      • 2021-03-14
      • 2021-02-26
      • 2021-10-31
      相关资源
      最近更新 更多