Excellent; thank you. -Paul
On Thu, Nov 7, 2013 at 10:58 AM, Ignasi <[email protected]> wrote: > This error is also due to SSL. In addition to the property Andrew > suggested, set the following one to "true" too: > > https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/Constants.java#L182-L188 > > On 7 November 2013 16:45, Paul Bell <[email protected]> wrote: > > Hi Andrew, > > > > I made the change you suggested (thank you) and the symptom changed. I am > > now getting this exception: > > > > Exception in thread "main" org.jclouds.http.HttpResponseException: > > org.jclouds.http.HttpResponseException: HTTPS hostname wrong: should be > > <dpvcloud.mycompany.com> connecting to POST > > https://dpvcloud.mycompany.com/sessions HTTP/1.1 connecting to GET > > https://dpvcloud.mycompany.com/org/ HTTP/1.1 > > at > > > org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:162) > > at > > > org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:131) > > at > > > org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:97) > > at > > > org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:58) > > at > > > org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117) > > at > > > com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:70) > > at $Proxy56.list(Unknown Source) > > at test.VcdTest.main(VcdTest.java:62) > > > > Line 62 in my VcdTest.java is a call to orgApi.list(). > > > > I'm not sure how to interpret these phenomena, but I'd hazard the guess > > that, prior to actually presenting the GET for "org", jclouds needs to > > establish a session with VCD. Hence the POST for "sessions". I've done > this > > programmatically via the actual VCD REST API (as opposed to the Java > SDK). > > In response to this request, VCD is supposed to return an authorization > > token that can then be used in the x-dpvcloud-authorization header. > > > > In any event, it's hard to see why I'm getting a "hostname wrong" error > > because the actual and "should be" hostnames are identical. > > > > Cordially, > > > > Paul > > > > On Wed, Nov 6, 2013 at 5:52 PM, Andrew Phillips <[email protected]> > wrote: > >> > >> You might want to try the following (haven't tested it, I have to say): > >> > >> > >> Properties overrides = new Properties(); > >> overrides.setProperty(Constants.PROPERTY_TRUST_ALL_CERTS, "true"); > >> > >> and then add this in to the context creation via > >> ".overrides(overrides).buildApi(...)" > >> > >> Hope this helps! > >> > >> ap > > > > >
