in src/main/java/com/vmware/vim25/ws/WSClient.java [67:80]
public WSClient(String serverUrl, boolean ignoreCert, TrustManager trustManager) throws MalformedURLException, RemoteException {
if(ignoreCert && trustManager != null) {
log.warn("The option to ignore certs has been set along with a provided trust manager. This is not a valid scenario and the trust manager will be ignored.");
}
if (serverUrl.endsWith("/")) {
serverUrl = serverUrl.substring(0, serverUrl.length() - 1);
}
log.trace("Creating WSClient to server URL: " + serverUrl);
log.trace("Ignore ssl: " + ignoreCert);
this.baseUrl = new URL(serverUrl);
this.sslSocketFactory = ignoreCert ? getTrustAllSocketFactory(true) : getCustomTrustManagerSocketFactory(trustManager);
}