1 Reply Latest reply on Oct 11, 2015 9:21 PM by michaeldeguzman

    SSL issue for vCD SDK

    zengfuyang Novice

      I try to login the vCD via vCD SDK, but I got an error for certificate. Every body can help me who to ignore the SSL certificate.

       

      Mar 26, 2015 3:54:04 PM com.vmware.vcloud.sdk.RestUtil getSupportedVersions

      INFO: GET Supported Versions URL - https://10.0.70.14/api/versions

      Mar 26, 2015 3:54:05 PM com.vmware.vcloud.sdk.RestUtil getSupportedVersions

      SEVERE: null

      javax.net.ssl.SSLException: hostname in certificate didn't match: <10.0.70.14> != <10.0.70.23>

          at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:228)

          at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)

          at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:149)

          at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:130)

          at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)

          at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)

          at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151)

          at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125)

          at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:641)

          at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)

          at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)

          at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)

          at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)

          at com.vmware.vcloud.sdk.RestUtil.getSupportedVersions(RestUtil.java:408)

          at com.vmware.vcloud.sdk.VcloudClient.getSupportedVersions(VcloudClient.java:227)

          at com.vmware.vcloud.sdk.VcloudClient.login(VcloudClient.java:329)

          at CreateOrg.createorg(CreateOrg.java:47)

          at CreateOrg.main(CreateOrg.java:86)