I'm getting this error on startup with an app hosted on a Linux AppService (P1v2) - (it does however work as documented on other pages/stackoverflow posts on a Linux AppService (B2)).
*Application startup exception
System.InvalidOperationException: Couldn't find a valid certificate with subject 'CN=<mydomain>' 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)*
Startup code:
*services.AddIdentityServer(options =>
{
options.IssuerUri = applicationUrls.WebAPIUrl;
})
.AddApiAuthorization<User, DataContext>();*
My settings look like this:
*"IdentityServer": {
"Key": {
"Type": "Store",
"StoreName": "My",
"StoreLocation": "CurrentUser",
"Name": "CN=<myDomain>"
},
"WEBSITE_LOAD_CERTIFICATES": "<certificateThumbprint>"*
Please help - thanks!
