Deploy asp.net core with ID 4 to Azure

Viewed 260

please help me to resolve this issue, I am trying to deploy my application included IdentityServer4 to Azure with subdomain (mysite.azurewebsites.net) but get this exception:

Unhandled exception. System.InvalidOperationException: Couldn't find a valid certificate with subject 'CN=altsourceaure.azurewebsites.net' on the 'CurrentUser\My' at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.SigningKeysLoader.LoadFromStoreCert(String subject, String storeName, StoreLocation storeLocation, DateTimeOffset currentTime) at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ConfigureSigningCredentials.LoadKey() at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ConfigureSigningCredentials.Configure(ApiAuthorizationOptions options)

this is my configuration on Prd:

"IdentityServer": {
    "Key": {
      "Type": "Store",
      "StoreName": "My",
      "StoreLocation": "CurrentUser",
      "Name": "CN=mySite.azurewebsites.net"
    }
}
1 Answers

There is a sample walk-through (for Azure AppService, Windows OS, not Linux) Publish and deploy on github (in one of the blazor workshops), maybe this helps.

Related