Ik vond de oplossing hier:https://forums.aws.amazon.com /thread.jspa?threadID=62110 .
- Download ca cert-bestand van hier:https:/ /s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem
curl -O https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem
- Verbinden met mysql:
mysql -uusername -p --host=host --ssl-ca=mysql-ssl-ca-cert.pem
- Controleer of je verbinding echt versleuteld is:
mysql> SHOW STATUS LIKE 'Ssl_cipher';
+---------------+------------+ | Variable_name | Value | +---------------+------------+ | Ssl_cipher | AES256-SHA | +---------------+------------+ 1 row in set (0.00 sec)
- Optioneel SSL forceren voor een specifieke gebruiker om verbinding te maken met MySQL
mysql> ALTER USER 'username'@'host|%' REQUIRE SSL