Created
February 13, 2023 09:27
-
-
Save jrialland/5f6863e9745d47f610afcf16e0561841 to your computer and use it in GitHub Desktop.
install a certificate bundle containing multiple certs as trusted certificates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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