Skip to content

Instantly share code, notes, and snippets.

@calebwashburn
Created December 10, 2019 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebwashburn/f4f46b48bab31e18c37edfee55644388 to your computer and use it in GitHub Desktop.
Save calebwashburn/f4f46b48bab31e18c37edfee55644388 to your computer and use it in GitHub Desktop.
#!/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