Hello I have this error in my docker image: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
This is not a docker problem. This is related to java and its certificate handling.
Google for “java truststore” and I am sure you will find plenty of examples on what needs to be done.
Just to let you know that I have the same problem, but it is NOT present when I run my app outside a docker container. In other words, my app shows this error ONLY when it is inside docker container, so… I believe it is not a 100% java problem… Any idea what could it be?
Also, I have created a thread in StackOverflow about a problem like this one, but a little bit more complex, with no luck: https://stackoverflow.com/questions/60745650/keycloak-server-authentication-wrong-behaviour-from-a-docker-app?noredirect=1#comment107567279_60745650