Snippets tagged “truststrategy”
1 snippet uses this tag.
- Trusting all certificates using HttpClient over HTTPSJava
To trust all certificates when using the Apache HttpClient library to make HTTPS requests, you can create a custom X509TrustManager implementation that trusts all certificates and use it to create an SSLContext with a custom TrustStrategy.