简体   繁体   English

将 ID 为 4 的 asp.net 内核部署到 Azure

[英]Deploy asp.net core with ID 4 to Azure

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:请帮我解决这个问题,我正在尝试将包含 IdentityServer4 的应用程序部署到带有子域(mysite.azurewebsites.net)的 Azure 但得到这个异常:

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) System.InvalidOperationException:在 Microsoft.AspNetCore.ApiAuthorization.IdentityServer.SigningKeysLoader.LoadFromStoreCert(字符串主题、字符串 storeName、StoreLocation storeLocation 的“CurrentUser\My”上找不到主题为“CN=altsourceaure.azurewebsites.net”的有效证书, DateTimeOffset currentTime) 在 Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ConfigureSigningCredentials.LoadKey() 在 Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ConfigureSigningCredentials.Configure(ApiAuthorizationOptions 选项)

this is my configuration on Prd:这是我在 Prd 上的配置:

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

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. 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.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM