【发布时间】:2017-10-07 14:33:32
【问题描述】:
上个月,我更新了一个客户网站以确保安全。本周(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。
我花了很长时间试图找出造成这种情况的根本原因,最后将数据库上的 SSLMode 设置为 none。
我得出的唯一结论是网站上的SSL证书之间存在冲突,并强制我的MySQL连接SSLMode需要。
我已将网站更新为 .net 4.6.* 无济于事....
欢迎提出任何想法或建议......
我正在使用:MySQL 连接器、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)
【问题讨论】:
标签: mysql .net ssl amazon-rds mysql-connector