com.alogic.remote.httpclient.customizer.IgnoreSSL Maven / Gradle / Ivy
package com.alogic.remote.httpclient.customizer;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import com.anysoft.util.PropertiesConstants;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.http.client.config.RequestConfig.Builder;
import org.apache.http.impl.client.HttpClientBuilder;
import com.alogic.remote.httpclient.HttpClientCustomizer.Abstract;
import com.anysoft.util.Properties;
/**
* 忽略客户端的ssl验证
*
* @author yyduan
* @since 1.6.10.6
*
* @version 1.6.13.4 [20200514 duanyy]
* - https调用的协议版本可配置,缺省为TLSv1.2;