Skip to content

To install all the possible CA Certificates for AWS RDS databases, follow the instructions and use the following commands:

  1. Transition to a root session so you have root access.
Terminal window
sudo su
  1. 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.
Terminal window
apt update ; apt install -y ca-certificates curl
rm -f /tmp/global-bundle.pem
curl "https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem" -o /tmp/global-bundle.pem
csplit -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"; done
update-ca-certificates
  1. After running this command, you should see the following output:
Terminal window
Updating certificates in /etc/ssl/certs...
118 added, 0 removed; done.
  1. Ensure you exit your root session.
Terminal window
exit