Closed lukewarms closed 1 year ago
Solved by appending the file instead ie:
FROM alpine:latest
COPY my-cert.pem /usr/local/share/ca-certificates/my-cert.crt
RUN cat /usr/local/share/ca-certificates/my-cert.crt >> /etc/ssl/certs/ca-certificates.crt && \
apk --no-cache add \
curl
https://stackoverflow.com/questions/67231714/how-to-add-trusted-root-ca-to-docker-alpine
Hi, I am running a docker smallstep PKI and wanting to run ACME in the ejabberd container. I have pointed ACME to my ca_url in the config file and build the following Dockerfile which i can confirm adds my root_ca.crt to the Alpine container /etc/ssl/certs/ca-certificates.crt
However, when i run the container, it still fails to validate my ca with:
Am i missing something on how /opt/ejabberd/conf/cacert.pem is populated?
Thanks Luke