docker-library/tomcat

setting up keystore for docker image

balayogeeswar opened this issue · 1 comments

Hi , I am trying to set keystore for the tomcat , below docker does not generate .keystore file , and the certificate is updated in /etc/ssl/certs path, but the when my application is sending https request to my other webservices, i am still getting "Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" error.

In general my question is how can i install crt file in my JAVA security cacert path ?
$JAVA_HOME/jre/lib/security/cacerts

RUN apt-get install ca-certificates -y

ADD ./certs/dhl-root.crt /usr/share/ca-certificates/extra/dhl-root.crt
RUN echo "extra/dhl-root.crt" >> /etc/ca-certificates.conf

RUN update-ca-certificates