Forum Discussion
Jeff_41325
Sep 23, 2013Nimbostratus
Another hack is to override the https implementation to not check the cert. Some of these functions are deprecated...
Protocol easyhttps = null;
try {
easyhttps = new Protocol("https", new EasySSLProtocolSocketFactory(), 443);
}
catch (GeneralSecurityException e1) {
throw new AsmAccessException(e1.getMessage(),e1);
}
catch (IOException e1) {
throw new AsmAccessException(e1.getMessage(),e1);
}
Protocol.registerProtocol("https", easyhttps);