HttpClient访问Https报错处理

错误:HttpClient 访问Https报错hostname in certificate didn't match
解决办法:
SSLConnectionSocketFactory sslFactory = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocktFactory.ALLOW_ALL_HOSTNAME_VERIFIER);

posted on 2021-12-07 11:32  seamy  阅读(168)  评论(0编辑  收藏  举报