Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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