Unable to connect to Jaspersoft Studio and Jaspersoft JDBC Adapters. An error in the logs shows referencing an SSLHandshakeException, unable to find valid certification path to requested target.
Expected Result: The connection to the Jaspersoft Studio and Jaspersoft JDBC Adapters.
Actual Result: The connection errors with the errors listed in the cause section below.
Release : All Supported Clarity release
Component : CLARITY SAAS JASPERSOFT
The connection is failing because of the failure in SSL handshake between Jaspersoft Server and Jaspersoft Studio, the error stack is below:
Caused by: 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 sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsC
Note: The keytool command will import the certificate to the cacerts. If you have multiple certificates in your certificate chain you would need to import all of them as well by running the key tool command as mentioned in Step 6 under the resolution section
See also: