Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Getting error when consuming SSL enabled RESTful service (https)

Hi All,
When I was trying to consume SSL enabled RESTful service using POST method from Route, ended with following error.
I am using Talend Data Services Platform 6.2.1 (subscription version). Please share your thoughts to get rid of this error.

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:1949)
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:1509)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at org.apache.commons.httpclient.methods.StringRequestEntity.writeRequest(StringRequestEntity.java:146)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:254)
at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:149)

Regards,
Saravana
Labels (4)
4 Replies
Anonymous
Not applicable
Author

Hi Saravana,
Are you using tSetKeystore to import the certificate ?
Anonymous
Not applicable
Author

Hi, 
Thanks for your response.
No, I am not using tSetKeystore. In fact, this component is not available within Talend ESB Routes.
Regardss
Saravana
Anonymous
Not applicable
Author

Hi,

Have you deployed the route into Talend Runtime container or just running the route within Studio? does the SSLHandshakeException only happen when POST? or happon for any GET/PUT/POST.

Regards.
Xilai Dai
Anonymous
Not applicable
Author

I got this exception when running the route within studio. I have found a solution and resolved this issue now. Thanks for all your support.
Basically, I have downloaded SSL certificate (of the server from browser) and installed into Talend JVM (using Java keytool utility). It solved the problem. I will share detailed steps later to benefit others.