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

快来打我* 2022-02-24 13:24 495阅读 0赞

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链接的证书验证

发表评论

表情:
评论列表 (有 0 条评论,495人围观)

还没有评论,来说两句吧...

相关阅读