1

Created App Service Managed Certificates in Azure (TLS/SSL settings of the web service). How can I use this healthy private key certificate in combination with the IdentityServer4? Something like?

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

},

Gerard
  • 2,501
  • 1
  • 26
  • 38

2 Answers2

0

No, you have to supply a (self-signed) certificate, see How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS for further instructions. For creating a self-signed certificate see for example make certificate with PowerShell

Gerard
  • 2,501
  • 1
  • 26
  • 38
0

I think you are understanding this a little incorrect. You should not expose private key from Azure. You could outsource token signing to Azure as described in this article https://www.scottbrady91.com/Identity-Server/Outsourcing-IdentityServer4-Token-Signing-to-Azure-Key-Vault

Myte
  • 31
  • 5