javax.net.ssl.SSLPeerUnverifiedException: Host name 'XXXXXXXXX' does not match the certificate su...
https交互的过程:问题出现在证书的认证上,需要忽略证书的验证,在网上找了很多解决方案,都不全,最后在stackflow上找到了解决方案:地址核心语句是这个:SSLConnectionSocketFactorysslConnectionSocketFactory=newSSLConnectionSocketFactory(builder.build(),NoopHostnameVerifier.