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
I'd try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum
These links might be useful as well https://tomcat.apache.org/tomcat-10.0-doc/ssl-howto.html
https://serverfault.com/questions/845141/where-to-put-certificates-in-tomcat-when-app-acts-as-client
See also #50