jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <n...@apache.org>
Subject Re: Certificate validation issue with AWS EC2
Date Mon, 22 Dec 2014 22:01:08 GMT
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).


On 22 December 2014 at 17:41, Udara Liyanage <udaraliyanage@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

View raw message