Jeg fandt løsningen her:https://forums.aws.amazon.com /thread.jspa?threadID=62110 .
- Download ca cert-fil herfra:https:/ /s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem
curl -O https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem
- Opret forbindelse til mysql:
mysql -uusername -p --host=host --ssl-ca=mysql-ssl-ca-cert.pem
- Tjek, at din forbindelse virkelig er krypteret:
mysql> SHOW STATUS LIKE 'Ssl_cipher';
+---------------+------------+ | Variable_name | Value | +---------------+------------+ | Ssl_cipher | AES256-SHA | +---------------+------------+ 1 row in set (0.00 sec)
- Tving eventuelt SSL for en bestemt bruger til at oprette forbindelse til MySQL
mysql> ALTER USER 'username'@'host|%' REQUIRE SSL