title: JAVA PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:unable to find valid certification path to requested target
body: <p>I have Talend Big Data application which is I want to run a job. It contains &quot;tREST&quot; component that supposed to fetch REST API endpoint. All is fine when I'm using Postman, I get all the results that I want.</p>
  <p>But when I executed the job, it gives me this error.</p>
  <pre><code>Starting job test_api at 14:28 08/03/2022.
  [statistics] connecting to socket on port 3641
  [statistics] connected
  Exception in component tREST_1 (test_api)
  com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: PKIX 
  path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to 
  find valid certification path to requested target at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.j ava:155) 
  at com.sun.jersey.api.client.Client.handle(Client.java:652)
  at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
  at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
  at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
  at ace.test_api_0_1.test_api.tREST_1Process(test_api.java:983)
  at ace.test_api_0_1.test_api.runJobInTOS(test_api.java:1674)
  at ace.test_api_0_1.test_api.main(test_api.java:1436)
  Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: 
  sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification 
  path to requested target`
  </code></pre>
  <p>I already run the troubleshoot as mentioned in this thread <a href="https://stackoverflow.com/a/12524960">https://stackoverflow.com/a/12524960</a>
  but I believe I only save the certification as in global, not in the right path. Question is how can I store it in Talend or java path?</p>