2

I use GeoServer war 2.4.5 with Tomcat. When I try to add a WMS data source from add store, it gives:

"Connection test failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" and wms Capabilities URL is "https://"

How can I fix this problem?

1
  • Did you fixed this? Commented Mar 29, 2021 at 14:53

1 Answer 1

3

Error means that the remote server does not have a valid certificate from a trusted certificate authority. What you should do is to add this certificate into your local storage of trusted certificates. That storage is inside the jre that you are using for running Geoserver and the tool to use is "keytool". This link seems to have detailed instructions http://www.java-samples.com/showtutorial.php?tutorialid=210

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.