code: @Deprecated
      public static void trustAllHttpsCertificates() throws NoSuchAlgorithmException, KeyManagementException {
          TrustManager[] trustAllCerts = new TrustManager[1];
          trustAllCerts[0] = new TrustAllManager();
          SSLContext sc = SSLContext.getInstance("SSL");
          sc.init(null, trustAllCerts, null);
          HttpsURLConnection.setDefaultSSLSocketFactory(
              sc.getSocketFactory());
      }
docs: This is an unsafe method and should not be used. It will be removed
  at the next MAJOR release of vSphere
  
  @throws NoSuchAlgorithmException
  @throws KeyManagementException
  @deprecated