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).
Andrew.G
  • 456
  • 3
  • 9

2 Answers2

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

Andrew.G
  • 456
  • 3
  • 9
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,

STA
  • 30,729
  • 8
  • 45
  • 59
beishan
  • 21
  • 2
  • 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. – Manabu Tokunaga Jan 24 '22 at 14:31
  • 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 – bekanur98 Mar 10 '23 at 05:05