java.security.cert.CertificateException: No subject alternative names present
解决方法一:跳过证书验证,直接上代码public class SslUtil { private static void trustAllHttpsCertificates() throws Exception { TrustManager[] trustAllCerts = new TrustManager[1]; TrustManager tm = new miTM(); trustAllCerts[0] = tm; ...
原创
2021-06-04 20:10:02 ·
2105 阅读 ·
1 评论