code: private static TrustManager[] getNonValidatingTrustManagers(String[] acceptedIssuers) {
          X509TrustManager x509TrustManager = new CustomX509TrustManager(acceptedIssuers);
          return new TrustManager[]{x509TrustManager};
      }
docs: we want to allow self-signed certificates.