Programming in Java: Ignore SSL Certificate Errors with Java on newest questions tagged java – Stack Overflow

You can see the relevant code here: https://gist.github.com/3417669

This is the method everyone says to use to ignore SSL Certificate Errors (only setting this up for staging, it won’t be used in production). However, I am still getting the following exception/stacktrace:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building unable to find valid certification path to requested target

Any tips would be great. If I am doing the TrustManager wrong, or if I should be executing the HTTP Post method differently, either way.

Thanks!

See Answers


source: http://stackoverflow.com/questions/12060250/ignore-ssl-certificate-errors-with-java
Programming in Java: programming-in-java



online applications demo