SSL/TLS 1.2 Connection Issues - PHP/SQLSRV

笑着哭i 提交于 2021-02-05 08:21:30

问题


I recently disabled TLS 1.0 & TLS 1.1 on a web server, but it seems to have caused some issues with some of the PHP sites I'm running.

The error in question is: "[Microsoft][ODBC Driver 11 for SQL Server]Encryption not supported on the client." but I have other sites running on TLS 1.2 on the same server, I even have other PHP-based sites still able to connect to the database despite being earlier versions of PHP (5.3.28, which I think might've even been before TLS 1.2 support was added.. so not sure how they're still functional considering the server is now restricted to TLS 1.2 only).

Anyway, I've been troubleshooting this quite a while now, and would greatly appreciate any new ideas to try.

Additional Info:

Server: Windows Server 2012 R2 Standard (IIS 8)

PHP Version: 7.0.17

curl version: 7.47.1

SSL version: OpenSSL/1.0.2h

OPENSSL_VERSION_NUMBER: 1000208f

The same sites have been able to connect to the databases in the past, just apparently not through TLS 1.2

If I can provide any other info here that would be useful, just let me know and I'll update the thread.

Thanks.


回答1:


For an SSL connection failure,you may have to look into both sides (both the client and server side). Please check the sql server and verify if it with the help of this article on TLS 1.2

Also for the ODBC driver as well,you have to make sure all the components are updated.Refer this msdn .

There is also this powershell script which can be executed to figure out which drivers needs to be updated.



来源:https://stackoverflow.com/questions/45146979/ssl-tls-1-2-connection-issues-php-sqlsrv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!