Kestrel HTTPS:处理证书时发生未知错误

时间:2017-06-30 13:04:41

标签: https certificate ssl-certificate kestrel-http-server kestrel

由Kestrel引发后台错误但未阻止用户在HTTPS模式下正确使用Web服务器。

即使网络服务器上没有任何活动,这些错误大约每20分钟发生一次。

"System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: An unknown error occurred while processing the certificate
   --- End of inner exception stack trace ---
   at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)\r\n   at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
   --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionFilter.<OnConnectionAsync>d__6.MoveNext()
   --- End of inner exception stack trace ---
   ---> (Inner Exception #0) System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: An unknown error occurred while processing the certificate
   --- End of inner exception stack trace ---\r\n   at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
   --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionFilter.<OnConnectionAsync>d__6.MoveNext()<---"

此Web服务器的依赖关系

"Microsoft.AspNetCore.Mvc": "1.1.0", 
"Microsoft.AspNetCore.Rewrite": "1.0.0", 
"Microsoft.AspNetCore.Routing": "1.1.0", 
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", 
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0", 
"Microsoft.AspNetCore.Server.Kestrel.Https": "1.1.0", 
"Microsoft.AspNetCore.StaticFiles": "1.1.0", 
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0", 
"Microsoft.Extensions.Configuration.FileExtensions": "1.1.0", 
"Microsoft.Extensions.Configuration.Json": "1.1.0", 
"Microsoft.Extensions.Logging": "1.1.0", 
"Microsoft.Extensions.Logging.Console": "1.1.0", 
"Microsoft.Extensions.Logging.Debug": "1.1.0", 
"Microsoft.Extensions.Logging.TraceSource": "1.1.0", 
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0"

0 个答案:

没有答案