Java HTTPS connection with SSL certificate Exception Handling

As the title suggests mostly when Java developers face the below error, they are in a fix. Exception in thread “main” javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I have written a separate class to cater such issue once for all. The class name is ‘disablessl.java’. […]

Verified by MonsterInsights