feat(letsencrypt): RedHat compatible script

This commit is contained in:
wpetit 2022-10-25 12:37:38 -05:00
parent 190b01fa6d
commit 9b58ab6971

View File

@ -3,7 +3,15 @@
set -eo pipefail
DESTDIR=/usr/local/share/ca-certificates
if [ ! -d "$DESTDIR" ]; then
DESTDIR=/etc/pki/ca-trust/source/anchors
fi
UPDATE_CERTS_CMD=update-ca-certificates
if [ -z "$(which $UPDATE_CERTS_CMD)" ]; then
UPDATE_CERTS_CMD="update-ca-trust extract"
fi
CERTS="$(cat <<EOF
https://letsencrypt.org/certs/isrgrootx1.pem
https://letsencrypt.org/certs/isrg-root-x2.pem