Snippets tagged “x509trustmanager”
2 snippets use this tag.
- Accept server's self-signed ssl certificate in Java clientJava
To accept a server's self-signed SSL certificate in a Java client, you can create a custom javax.net.ssl.X509TrustManager and use it to override the default trust manager.
- 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.