code: public static SSLContext acceptingSslContext() {
          try {
              SSLContext sslContext = SSLContext.getInstance("SSL");
              sslContext.init(null, TRUST_MANAGERS, new SecureRandom());
              return sslContext;
  
          } catch (NoSuchAlgorithmException | KeyManagementException ex) {
              throw new RuntimeException("Unable to create issue-ignoring SSLContext: " + ex.getMessage(), ex);
          }
      }
docs: Creates an {@link SSLContext} that allows all requests, regardless of certificate issues.
  
  @return an all-accepting {@link SSLContext}