MySQL SSL Connection
The standard way to connect to MySQL is:
<pre lang="bash">
mysql -h hostname -u user -p
Here’s how to connect to MySQL with SSL encryption.
<pre lang="bash">
mysql -h hostname -u user -p \
--ssl-ca=server-ca.pem \
--ssl-cert=client-cert.pem \
--ssl-key=client-key.pem
Generate the SSL keys from the MySQL server. Download it to the client.