Skip to content
Advertisement

Tag: sslhandshakeexception

How to fix “javax.net.ssl.SSLHandshakeException: TLS Server certificate issued after 2019-04-16 and anchored by a distrusted legacy Symantec root CA”

I got the exception below while connecting to a MQTT Server with Java and self signed certificates. I used VeriSign-Class 3-Public-Primary-Certification-Authority-G5.pem as cacert.pem. The code is for an Linux server but currently I’m programming it on IntelliJ IDEA. The output is: I tried to connect to the server with MQTT.fx (Windows program) and it worked. Hope you can help me.

javax.net.ssl.SSLHandshakeException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

My spring boot application communicate to a remote https url and it gives the above mentioned error while hitting a POST request. I went through multiple stackoverflow posts for the same topic. Installed/imported required certificates using keytool and restarted JVM. But that didn’t resolve my issue. The error message is the same, however the root cause is different here apart

Advertisement