PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Cannot connect to a database because of SSLHandshakeException

Last modified: 05 December 2022

Available only in PyCharm Professional: download to try or compare editions

Due to Java security policy, the usage of TLS 1.0 and TLS 1.1 protocols was disabled. This Java update caused the javax.net.ssl.SSLHandshakeException error that occurred when you tried to connect to old servers that still accept these protocols.

As a fix, you can explicitly enable these protocols. Note that it might result in vulnerability issues. Consider using newer versions of TLS.