Created
December 10, 2019 16:48
-
-
Save calebwashburn/f4f46b48bab31e18c37edfee55644388 to your computer and use it in GitHub Desktop.
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
#!/bin/bash -e | |
if [ ! -z "$CA_CERT" ] | |
then | |
temp_pem=$(mktemp) | |
echo "${CA_CERT}" > $temp_pem | |
openssl x509 -in $temp_pem -inform PEM -out /usr/local/share/ca-certificates/custom.crt | |
update-ca-certificates | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment