I had SSLPeerUnverifiedException with org.apache.httpcomponents.httpasyncclient v4.1.5. When I just replace it with org.apache.httpcomponents.httpclient5 v5.5 exception changes to SSLHandshakeException. And solution for that: Migrating apache http client 5 from 5.3 to 5.4 trust all hosts and certificates deprecation replacement