To install all the possible CA Certificates for AWS RDS databases, follow the instructions and use the following commands:
- Transition to a root session so you have root access.
sudo su
- Run the following commands to download the CA certificate bundle from AWS, split it into a set of
.crt
files, and then update the local trust store with all these files.
apt update ; apt install -y ca-certificates curlrm -f /tmp/global-bundle.pemcurl "https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem" -o /tmp/global-bundle.pemcsplit -s -z -f /usr/local/share/ca-certificates/aws-rds /tmp/global-bundle.pem '/-----BEGIN CERTIFICATE-----/' '{*}'for file in /usr/local/share/ca-certificates/aws-rds*; do mv -- "$file" "${file%}.crt"; doneupdate-ca-certificates
- After running this command, you should see the following output:
Updating certificates in /etc/ssl/certs...118 added, 0 removed; done.
- Ensure you exit your root session.
exit