Hello everyone,
I have 2 Tomcat app servers (Tomcat1, Tomcat2) on 2 different hosts.
Tomcat1 is my main J2EE web application that has a commercial certificate, and the application works correctly.
Tomcat2 is a dependent component that has a self signed certificate.
both tomcats are behind a load balancer.
When calling my Tomcat2 component, I get the following error:
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
I tried importing my self-singed cert on JVM of my Tomcat1 (and Tomcat2), but still same result.
Do I need to have the self-singed cert on my loadbalancer too?
Client's browser accesses directly Tomcat1 (main application), and when using dependent component on tomcat2, it sends request to client's browser directly, so I would assume my self-singed cert need to be loaded at loadbalancer level too?
Thanks.
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