0

I've been testing an application example using Google Vision API.

I have the code from their github, and created the relevant project and credentials file (something Google Cloud requests) and tried to run the code.

I get the following:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I've tried to add the relevant SSL certificates to my JRE's cacerts, I've restarted eclipse and an admin, but I still get this.

EDIT I've also tried to manually set the ssl properties as follows:

        System.setProperty("javax.net.ssl.keyStore", "C:/path/to/cacerts");
        System.setProperty("javax.net.ssl.keyStorePassword","cacerts_pass");
        System.setProperty("javax.net.ssl.trustStore", "C:/path/to/cacerts");
        System.setProperty("javax.net.ssl.trustStorePassword","cacerts_pass");

Any ideas to resolve this issue, please?

If there's anything I should provide, please let me know. Thanks in advance.

pm0733464
  • 2,862
  • 14
  • 16
DanielY
  • 1,141
  • 30
  • 58

0 Answers0