We have created docker container at digital ocean. our tomcat is running inside docker container and Apache web server is running at digital ocean. we configured SSL at Apache we server and keep the location details of certification into httpd-ssl file. JAVA is running inside container. After configured SSL certification at Apache web server, we are getting an exception if any remote URL hit the our application. The exception is
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
As we used to update cacerts inside java by following command keytool -import -alias alias -keystore /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/security/cacerts -file myserver.cer
Can anyone help me over this issue ?
Any help would be appreciated