1

How to connect to Amazon RDS MySQL instance while preventing MITM attack

view story
linux-howto

http://serverfault.com – I have an Amazon RDS instance running MySQL. I've created a user account, and I've configured MySQL to require the use of SSL for all logins to that account. I want the MySQL client to be able to authenticate the server, to ensure that man-in-the-middle attacks cannot occur. The MySQL command-line client has an option for this, namely --ssl-verify-server-cert. However, when I try it, I get the following, uninformative, error message: ERROR 2026 (HY000): SSL connection error So this command works fine: mysql --host $RDS_host --user $username \ --password=$password \ --ssl-ca mys (HowTos)