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"
}
}