I am using OkHttp and I need to ignore SSL errors for application debugging. This used to work in Java 8.
final TrustManager[] trustAllCerts = new TrustManag
Use sslSocketFactory(SSLSocketFactory sslSocketFactory, X509TrustManager trustManager)
In your code example you construct a X509TrustManager, just pass it in along with the socket factory.