ctx.init( null, new TrustManager[]{ new AllCertificatesTrustManager() }, null ); ( (HttpsURLConnection) conn ).setSSLSocketFactory( ctx.getSocketFactory() );
ctx.init( null, new TrustManager[]{ new AllCertificatesTrustManager() }, null ); ( (HttpsURLConnection) conn ).setSSLSocketFactory( ctx.getSocketFactory() );