Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

Not able to make SSL connection with ESX Server using webservices

$
0
0

I am trying to connect and login into to ESX Server using the web-services.

I have not included trustAllManager code as I do not wish to trust all certificates.

 

I have imported the server certificate into the java cacerts using keytool.

But still it is giving me below error. Is there any more configuration required?

 

Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:

    java.security.cert.CertPathValidatorException: The certificate issued by O=VMware Installer is not trusted; internal cause is:

    java.security.cert.CertPathValidatorException: Certificate chaining error

    at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:119)

    at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:140)

    at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:86)

 

Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:

    java.security.cert.CertPathValidatorException: The certificate issued by O=VMware Installer is not trusted; internal cause is:

    java.security.cert.CertPathValidatorException: Certificate chaining error

    at com.ibm.jsse2.n.a(n.java:36)


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>