/** * Set the default X509 Trust Manager to an instance of a dummy class that trust all certificates, * even the self-signed ones. * * It will use the default protocol: TLS */ public static void trustAllHttpsCertificates() { trustAllHttpsCertificates(DEFAULT_PROTOCOL); }
/** * Trust-all SSL context. * * @return trust all hostnames and certificates {@link SSLContext} instance */ public static SSLContext getTrustAllSSLContext() { trustAllHostnames(); trustAllHttpsCertificates(); return trustAllSSlContext; }
protocol = "http"; } else { SslUtils.trustAllHttpsCertificates(); SslUtils.trustAllHostnames();