Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Allow fetch CA cert insecurely
Browse files Browse the repository at this point in the history
This workaround until a better solution is implemented to get CA
cert reliably.

Signed-off-by: Martin Bašti <mbasti@redhat.com>
  • Loading branch information
MartinBasti authored and csomh committed Apr 2, 2019
1 parent 6dd1a76 commit 95f87fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/install-ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

if [ -n "${CA_URL}" ] && [ ! -f "/tmp/.imported" ]; then
# Since update-ca-trust doesn't work as a non-root user, let's just append to the bundle directly
curl --silent --show-error "${CA_URL}" >> /etc/pki/tls/certs/ca-bundle.crt
curl --silent --show-error --insecure "${CA_URL}" >> /etc/pki/tls/certs/ca-bundle.crt
# Create a file so we know not to import it again if the container is restarted
touch /tmp/.imported
fi

0 comments on commit 95f87fd

Please sign in to comment.