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

Cannot connect to a database because of SSLHandshakeException

Last modified: 20 September 2023

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.