@@ -0,0 +1,935 @@
+package com.firefly.net.tcp.ssl;%0A%0Aimport java.security.cert.CertificateException;%0Aimport java.security.cert.X509Certificate;%0A%0Aimport javax.net.ssl.SSLContext;%0Aimport javax.net.ssl.TrustManager;%0Aimport javax.net.ssl.X509TrustManager;%0A%0Apublic class NoCheckSSLContextFactory extends AbstractSSLContextFactory %7B%0A%0A%09@Override%0A%09public SSLContext getSSLContext() %7B%0A%09%09try %7B%0A%09%09%09X509TrustManager tm = new X509TrustManager() %7B%0A%09%09%09%09@Override%0A%09%09%09%09public void checkClientTrusted(X509Certificate%5B%5D chain, String authType) throws CertificateException %7B%0A%09%09%09%09%7D%0A%0A%09%09%09%09@Override%0A%09%09%09%09public void checkServerTrusted(X509Certificate%5B%5D chain, String authType) throws CertificateException %7B%0A%09%09%09%09%7D%0A%0A%09%09%09%09@Override%0A%09%09%09%09public X509Certificate%5B%5D getAcceptedIssuers() %7B%0A%09%09%09%09%09return null;%0A%09%09%09%09%7D%0A%09%09%09%7D;%0A%09%09%09return getSSLContextWithManager(null, new TrustManager%5B%5D %7B tm %7D, null);%0A%09%09%7D catch (Throwable e) %7B%0A%09%09%09log.error(%22get SSL context error%22, e);%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%7D%0A

add no check ssl context factory