javax.net.ssl.SSLPeerUnverifiedException: Host name 'xxx' does not match the

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/y41992910/article/details/89015805

javax.net.ssl.SSLPeerUnverifiedException: Host name ‘xxx’ does not match the certificate subject provided by the peer (CN=*.lenovo.com, OU=ITS, O=Lenovo (Beijing) Limited, L=Beijing, C=CN)

原因是对ssl链接中的证书做了验证
需要在代码中屏蔽对ssl链接的证书验证

猜你喜欢

转载自blog.csdn.net/y41992910/article/details/89015805