9

After the IntelliJ idea update, I got the exception when trying to connect to DB.

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).

2 Answers 2

20

The solution is simple.

Database tab → Data Source Properties

enter image description here

→ select DB → Advanced → enabledTLSProtocols set TLSv1.2. enter image description here

Sign up to request clarification or add additional context in comments.

Comments

2

step1

enter image description here

step2

enter image description here

database tab -> properties -> select db -> try Test Connection

edit VM options: delete SSLv3, TLSv1, TLSv1.1,

2 Comments

We have updated our base Java to Java11 and this started to happen and this solution works well. To clarify the instructions here is the exact string I used, and you can copy and paste it into the VM Option. "-Djdk.tls.disabledAlgorithms=SSLv3,TLSv1,TLSVv.1" Leave the quotes in when pasting.
Thanks, it helps me. I'm using tls version 1.0 in mysql server, so to fix the problem I used "-Djdk.tls.disabledAlgorithms=SSLv3" this one

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.