{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/3225","repository_url":"https://api.github.com/repos/IdentityServer/IdentityServer4","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/3225/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/3225/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/3225/events","html_url":"https://github.com/IdentityServer/IdentityServer4/issues/3225","id":437569837,"node_id":"MDU6SXNzdWU0Mzc1Njk4Mzc=","number":3225,"title":"当我发布identity server4的时候，运行http://域名/connect/token返回500","user":{"login":"guiqiang123","id":24471990,"node_id":"MDQ6VXNlcjI0NDcxOTkw","avatar_url":"https://avatars3.githubusercontent.com/u/24471990?v=4","gravatar_id":"","url":"https://api.github.com/users/guiqiang123","html_url":"https://github.com/guiqiang123","followers_url":"https://api.github.com/users/guiqiang123/followers","following_url":"https://api.github.com/users/guiqiang123/following{/other_user}","gists_url":"https://api.github.com/users/guiqiang123/gists{/gist_id}","starred_url":"https://api.github.com/users/guiqiang123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiqiang123/subscriptions","organizations_url":"https://api.github.com/users/guiqiang123/orgs","repos_url":"https://api.github.com/users/guiqiang123/repos","events_url":"https://api.github.com/users/guiqiang123/events{/privacy}","received_events_url":"https://api.github.com/users/guiqiang123/received_events","type":"User","site_admin":false},"labels":[{"id":290038719,"node_id":"MDU6TGFiZWwyOTAwMzg3MTk=","url":"https://api.github.com/repos/IdentityServer/IdentityServer4/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-04-26T08:58:00Z","updated_at":"2019-04-29T04:11:58Z","closed_at":"2019-04-29T04:11:58Z","author_association":"NONE","body":"我在本地的时候使用http://localhost:5000/connect/token获取token的时候，是很正常的，但是当我部署到服务器的时候，访问http://域名/connect/token，返回500 Internal Server Error\r\n下面是返回的异常日志\r\nInternal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The system cannot find the file specified\r\n   at System.Security.Cryptography.CngKey.Open(String keyName, CngProvider provider, CngKeyOpenOptions openOptions)\r\n   at System.Security.Cryptography.CngKey.Open(String keyName, CngProvider provider)\r\n   at Internal.Cryptography.Pal.CertificatePal.GetPrivateKey[T](Func`2 createCsp, Func`2 createCng)\r\n   at Internal.Cryptography.Pal.CertificatePal.GetRSAPrivateKey()\r\n   at Internal.Cryptography.Pal.CertificateExtensionsCommon.GetPrivateKey[T](X509Certificate2 certificate, Predicate`1 matchesConstraints)\r\n   at Microsoft.IdentityModel.Tokens.X509SecurityKey.get_PrivateKey()\r\n   at Microsoft.IdentityModel.Tokens.X509SecurityKey.get_PrivateKeyStatus()\r\n   at Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.FoundPrivateKey(SecurityKey key)\r\n   at Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider..ctor(SecurityKey key, String algorithm, Boolean willCreateSignatures)\r\n   at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateSignatureProvider(SecurityKey key, String algorithm, Boolean willCreateSignatures)\r\n   at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateForSigning(SecurityKey key, String algorithm)\r\n   at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)\r\n   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)\r\n   at IdentityServer4.Services.DefaultTokenCreationService.CreateJwtAsync(JwtSecurityToken jwt)\r\n   at IdentityServer4.Services.DefaultTokenCreationService.CreateTokenAsync(Token token)\r\n   at IdentityServer4.Services.DefaultTokenService.CreateSecurityTokenAsync(Token token)\r\n   at IdentityServer4.ResponseHandling.TokenResponseGenerator.CreateAccessTokenAsync(ValidatedTokenRequest request)\r\n   at IdentityServer4.ResponseHandling.TokenResponseGenerator.ProcessTokenRequestAsync(TokenRequestValidationResult validationResult)\r\n   at IdentityServer4.ResponseHandling.TokenResponseGenerator.ProcessAsync(TokenRequestValidationResult request)\r\n   at IdentityServer4.Endpoints.TokenEndpoint.ProcessTokenRequestAsync(HttpContext context)\r\n   at IdentityServer4.Endpoints.TokenEndpoint.ProcessAsync(HttpContext context)\r\n   at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events)\r\n   at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events)\r\n   at IdentityServer4.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)\r\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\n   at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context)\r\n   at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)\r\n   at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.Invoke(HttpContext httpContext)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)\r\n```\r\n希望各位大神能帮帮我，谢谢！"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/comments/487447201","html_url":"https://github.com/IdentityServer/IdentityServer4/issues/3225#issuecomment-487447201","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/3225","id":487447201,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NzQ0NzIwMQ==","user":{"login":"guiqiang123","id":24471990,"node_id":"MDQ6VXNlcjI0NDcxOTkw","avatar_url":"https://avatars3.githubusercontent.com/u/24471990?v=4","gravatar_id":"","url":"https://api.github.com/users/guiqiang123","html_url":"https://github.com/guiqiang123","followers_url":"https://api.github.com/users/guiqiang123/followers","following_url":"https://api.github.com/users/guiqiang123/following{/other_user}","gists_url":"https://api.github.com/users/guiqiang123/gists{/gist_id}","starred_url":"https://api.github.com/users/guiqiang123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guiqiang123/subscriptions","organizations_url":"https://api.github.com/users/guiqiang123/orgs","repos_url":"https://api.github.com/users/guiqiang123/repos","events_url":"https://api.github.com/users/guiqiang123/events{/privacy}","received_events_url":"https://api.github.com/users/guiqiang123/received_events","type":"User","site_admin":false},"created_at":"2019-04-29T04:11:58Z","updated_at":"2019-04-29T04:11:58Z","author_association":"NONE","body":"This problem has been solved. Thank you for your reply."}}
{"actor":{"display_login":"guiqiang123"}}