/** * Trust-all SSL context. * Optionally specify certificate file to create the keystore from. * * It will use the default protocol: TLS * * @param certFileName * @param certPassword * @return */ public static SSLContext getSSLContext( String certFileName, String certPassword ) { return getSSLContext(certFileName, certPassword, DEFAULT_PROTOCOL); }
SSLContext sslContext = SslUtils.getSSLContext(clientConfigurator.getCertificateFileName(), clientConfigurator.getCertificateFilePassword(), supportedProtocols[0]);