code: public static <B extends ConnectionConfiguration.Builder<B,?>> B acceptAllCertificates(B builder) throws NoSuchAlgorithmException, KeyManagementException {
          SSLContext context = SSLContext.getInstance(TLS);
          context.init(null, new TrustManager[] { new AcceptAllTrustManager() }, new SecureRandom());
          builder.setCustomSSLContext(context);
          return builder;
      }
docs: Accept all TLS certificates.
  <p>
  <b>Warning:</b> Use with care. This method make the Connection use {@link AcceptAllTrustManager} and essentially
  <b>invalidates all security guarantees provided by TLS</b>. Only use this method if you understand the
  implications.
  </p>
  
  @param builder a connection configuration builder.
  @param <B> Type of the ConnectionConfiguration builder.
  @throws NoSuchAlgorithmException
  @throws KeyManagementException
  @return the given builder.