# Java throwing certificate errors

**URL:** <https://community.graylog.org/t/java-throwing-certificate-errors/474>\
**Category:** Graylog Central (peer support)\
**Created:** [March 15, 2017, 4:49pm UTC](https://community.graylog.org/t/java-throwing-certificate-errors/474 "2017-03-15T16:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samer](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@samer](https://community.graylog.org/u/samer)\
**Post date:** [March 15, 2017, 4:49pm UTC](https://community.graylog.org/t/java-throwing-certificate-errors/474/1 "2017-03-15T16:49:03Z")

</div>

I’m running into these constant errors messages in the server log regarding the certificate authenticity. The certificates are not self-signed, but issued by DigiCert, and I can see the entries in the keystore for the root certificates, but for some reason the server is not reading them.

These are the errors:

```
2017-03-15T16:42:56.908Z WARN [ProxiedResource] Unable to call https://[x.x.x.x]:[1234]/api/system/metrics/multiple on node <...>
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

```

Let me know if you’d like more information.

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [March 16, 2017, 8:15am UTC](https://community.graylog.org/t/java-throwing-certificate-errors/474/2 "2017-03-16T08:15:30Z")

</div>

you might find this thread helpful

> [@Graylog Unable to call https://....:9000/api \[RESOLVED\]](https://community.graylog.org/t/graylog-unable-to-call-https-9000-api-resolved/469/2):
>
> Please post the complete output of the following commands: $ echo -n | openssl s\_client -connect 10.1.1.20:9000 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' \> graylog-cert.pem $ openssl x509 -noout -in graylog-cert.pem -fingerprint -sha1

---

<div class="post-metadata">

**Author:** ![samer](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@samer](https://community.graylog.org/u/samer)\
**Post date:** [March 16, 2017, 2:09pm UTC](https://community.graylog.org/t/java-throwing-certificate-errors/474/3 "2017-03-16T14:09:45Z")

</div>

Thanks, I already went through that but wasn’t able to figure out. I’ll go through that thread again carefully just in case I missed something.
