【问题标题】:How to use an Azure certificate for IdentityServer4如何为 IdentityServer4 使用 Azure 证书
【发布时间】:2020-04-21 15:43:51
【问题描述】:

在 Azure 中创建了应用服务托管证书(Web 服务的 TLS/SSL 设置)。 如何将这个健康的私钥证书与 IdentityServer4 结合使用?像什么?

"IdentityServer": {
"Clients": {
  "MyApp": {
    "Profile": "IdentityServerSPA"
  }
},
"Key": {
  "Type": "Store",
  "StoreName": "My",
  "StoreLocation": "LocalMachine",
  "Name": "?"
}

},

【问题讨论】:

    标签: azure certificate identityserver4


    【解决方案1】:

    不,您必须提供(自签名)证书,请参阅How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS 了解更多说明。要创建自签名证书,请参阅例如 make certificate with PowerShell

    【讨论】:

      【解决方案2】:

      我认为您对此的理解有些不正确。不应从 Azure 公开私钥。您可以将令牌签名外包给 Azure,如本文 https://www.scottbrady91.com/Identity-Server/Outsourcing-IdentityServer4-Token-Signing-to-Azure-Key-Vault

      中所述

      【讨论】:

        猜你喜欢
        • 2017-12-11
        • 1970-01-01
        • 2019-08-08
        • 1970-01-01
        • 2019-12-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-03-27
        相关资源
        最近更新 更多