jclouds uses a driver mechanism to perform HTTP requests. Currently it supports 3 drivers: the default one that uses the Java HttpUrlConnection, the OkHttp driver and the Apache HttpClient one. Those drivers are the ones that create and manage the actual HTTP connections, and jclouds doesn't set any SSL attribute unless explicitly configured.
So, as in any regular Java application, if you have to connect to an SSL endpoint and you need to explicitly trust a server certificate, you'll have to add that certificate to your trust store (or use any insecure mean of ignoring the certificates). I. On 22 December 2014 at 17:41, Udara Liyanage <udaraliyan...@gmail.com> wrote: > Hi. > > Below error is occurred while starting an instance with Jclouds. Do we have > to add aws-ec2 certs to our truststore in order to resolve this? > It seems that Jclouds does a certificate validation. Like to know some > details on this. > > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target connecting to POST > https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 > > -- > Udara S.S Liyanage. > Software Engineer at WSO2. > Commiter and PPMC Member of Apache Stratos. > Blog - http://udaraliyanage.wordpress.com > phone: +94 71 443 6897