code: @Beta
    public static SSLContext trustAllSSLContext() throws GeneralSecurityException {
      TrustManager[] trustAllCerts =
          new TrustManager[] {
            new X509TrustManager() {
  
              public void checkClientTrusted(X509Certificate[] chain, String authType)
                  throws CertificateException {}
  
              public void checkServerTrusted(X509Certificate[] chain, String authType)
                  throws CertificateException {}
  
              public X509Certificate[] getAcceptedIssuers() {
                return null;
              }
            }
          };
      SSLContext context = getTlsSslContext();
      context.init(null, trustAllCerts, null);
      return context;
    }
docs: {@link Beta} <br>
  Returns an SSL context in which all X.509 certificates are trusted.
  
  <p>Be careful! Disabling SSL certificate validation is dangerous and should only be done in
  testing environments.