Skip to content

Instantly share code, notes, and snippets.

@jrialland
Created February 13, 2023 09:27
Show Gist options
  • Save jrialland/5f6863e9745d47f610afcf16e0561841 to your computer and use it in GitHub Desktop.
Save jrialland/5f6863e9745d47f610afcf16e0561841 to your computer and use it in GitHub Desktop.
install a certificate bundle containing multiple certs as trusted certificates
#ADD data/ca-bundle.crt /usr/share/ca-certificates/mycompany/ca-bundle.crt
#RUN << EOF
cd /usr/share/ca-certificates/mycompany
i=1; while openssl x509 -out cert$i.pem; do
echo mycompany/cert$i.pem >> /etc/ca-certificates.conf
i=$((i+1))
done < ca-bundle.crt
update-ca-certificates
#EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment