Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Network error in DBeaver mysql connection: `unable to find valid certification path to requested target`

I have this message in my DBeaver Can you help me to fix the problem?

Network error

Motif:

Network unavailable:

javax.net.ssl.SSLHandshakeException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
like image 883
Loïc YOLA Avatar asked Dec 06 '25 05:12

Loïc YOLA


2 Answers

I have similar error the first time that i open a DB:

Network error

Reason: Network unavailable due to certificate issue. Try changing the setting Use Windows trust store in Preferences->Connections and restart DBeaver. It might help if you haven't overridden trust store. javax.net.ssl.SSLHandshakeException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I try 'bAsK' solution but not work for me.

The solution for me is remove check in the setting Use Windows trust store in Preferences->Connections and restart DBeaver

enter image description here

I also installed JRE 8 (Java)

like image 79
Ricko.. Avatar answered Dec 07 '25 22:12

Ricko..


For macOS:

Edit:

/Applications/DBeaver.app/Contents/Eclipse/dbeaver.ini

add the line:

-Djavax.net.ssl.trustStoreType=KeychainStore

Restart the DBeaver application to resolve this problem.

like image 32
Jeeva Kannan Avatar answered Dec 07 '25 22:12

Jeeva Kannan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!