I have a spring boot application that makes a http call to an external endpoint that has https enabled and a private cert. I am using the HttpClient api from java instead of RestTemplate or WebClient.
During local development, I have installed the cert to my jdk keystore and it make the call and gets the response just fine.
After building and dockerizing the application, mounting the keystore with the docker run command, -v /root/user/cacerts/cacerts:/opt/java/openjdk/lib/security/cacerts:ro \, the same call throws a ConnectException with 'null' message. I have zero clue what is going on considering I am an intern learning backend development.