code: private static TrustManager createNaiveTrustManager() {
          return 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;
              }
          };
      }
docs: Naive trust manager trusts all.