I am developing an application that simulates the user's actions on a browser (logs in a site, do some POST's and GET's, etc) and I get the following error:
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: subject/issuer name chaining check failed
...
Caused by: java.security.cert.CertPathValidatorException: subject/issuer name chaining check failed
I'm using Apache HTTP client library. Can someone explain to me what is wrong? I can do the same actions via a web browser.