上个月我将客户的网站更新为默认安全模式。完全没有问题,但是本周(05/10 @大约上午10点),我开始收到异常信息,详细描述如下:
System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm
我连接AWS MySQL RDS数据库的字符串一直包括SSLMode=Required,花费了很长时间试图解决问题,最终将数据库的SSL模式设置为none。
唯一的结论是网站上的SSL证书与强制MySQL连接SSLMode Required之间存在冲突。
我已经将网站更新到.net 4.6.*,但仍然没有效果....
欢迎任何想法或建议....
我使用的工具有:MySQL Connector、AWS MySQL 5.6、.net 4.6
内部异常:
System.Data.Entity.Core.ProviderIncompatibleException: An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure. ---> System.Data.Entity.Core.ProviderIncompatibleException: The provider did not return a ProviderManifestToken string. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm
--- End of inner exception stack trace ---
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
openssl s_client
之类的有用工具进行测试的可能性。我假设wireshark可以处理这个问题,但我不确定。 - Michael - sqlbot