Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a java setting for disabling certificate validation? [duplicate]

I received this error while trying to start up an application:

Sun.security.validator.ValidatorException: PKIX path validation failed:  java.security.cert.CertPathValidatorException:  java.net.UnknownHostException:oscp.thawte.com 

The application is behind a closed network and won't ever be able to get to oscp.thawte.com. Is there a java setting that can disable this?

like image 269
Tim Avatar asked Jan 11 '11 22:01

Tim


People also ask

What happens when you disable certificate validation for JRE?

If the SSL certificate is not validates as trusted or does not match the target host, an HTTPS and other SSL encrypted connection cannot be established and all attempts will result in SSLHandshakeException or IOException.


1 Answers

-Dcom.sun.net.ssl.checkRevocation=false

like image 86
MK. Avatar answered Sep 21 '22 18:09

MK.