Skip to main content
Participant
April 5, 2009
Question

mysql connector & ssl

  • April 5, 2009
  • 2 replies
  • 1526 views

Hi,

I have enabled ssl on my mysql server and am using useSSL=true&requireSSL=true in my jdbc connector url.

I am getting the following error:

The root cause was that: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** com.mysql.jdbc.CommunicationsException MESSAGE: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** javax.net.ssl.SSLHandshakeException MESSAGE: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target STACKTRACE: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)  at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187) at

If anyone had any success connecting to mysql via ssl I would appreciate any help.

Thanks!

This topic has been closed for replies.

2 replies

Participating Frequently
April 27, 2009

As per the exception the problem seems to be the request which you are firing over SSL is not able to gather the certificate as the certificate is not present in the correct path. Where have you uploaded the certificate? Have you added the certificate in the trusted Store?

Regards

UKB