private static SSLConnectionSocketFactory getFriendlyToAllSSLSocketFactory() throws Exception {
        val trm = new X509TrustManager() {
            @Override
            public void checkClientTrusted(final X509Certificate[] certs, final String authType) {
            }

            @Override
            public void checkServerTrusted(final X509Certificate[] certs, final String authType) {
            }

            @Override
            public X509Certificate[] getAcceptedIssuers() {
                return null;
            }
        };
        val sc = SSLContext.getInstance("SSL");
        sc.init(null, new TrustManager[]{trm}, null);
        return new SSLConnectionSocketFactory(sc, new NoopHostnameVerifier());
    }
Test cases for {@link SimpleHttpClient}.

@author Scott Battaglia
@since 3.1
core/cas-server-core-util/src/test/java/org/apereo/cas/util/http/SimpleHttpClientTests.java