Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Created March 5, 2021 13:56
Show Gist options
  • Save richardsonlima/ff164c68f4b42c36248a592b45cf7464 to your computer and use it in GitHub Desktop.
Save richardsonlima/ff164c68f4b42c36248a592b45cf7464 to your computer and use it in GitHub Desktop.
AWS_ROOT_CA_FILE=$HOME/aws.root.ca.bundle.pem
cp /dev/null $AWS_ROOT_CA_FILE
for ca in \
https://www.amazontrust.com/repository/AmazonRootCA1.pem \
https://www.amazontrust.com/repository/AmazonRootCA2.pem \
https://www.amazontrust.com/repository/AmazonRootCA3.pem \
https://www.amazontrust.com/repository/AmazonRootCA4.pem \
https://www.symantec.com/content/en/us/enterprise/verisign/roots/VeriSign-Class%203-Public-Primary-Certification-Authority-G5.pem; do
echo "getting CA: $ca"
wget -O - $ca >> $AWS_ROOT_CA_FILE
done
echo -n '\033[1;34m ==> Stored CA certificates in \n\033[0m' $AWS_ROOT_CA_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment