/** * Trust-all SSL context. * * @return trust all hostnames and certificates {@link SSLContext} instance */ public static SSLContext getTrustAllSSLContext() { trustAllHostnames(); trustAllHttpsCertificates(); return trustAllSSlContext; }
} else { SslUtils.trustAllHttpsCertificates(); SslUtils.trustAllHostnames();