In this blog post, we’ll discuss how we can determine if a MySQL connection is using SSL.
Since MySQL 5.7.5 the server generates SSL certificates (see auto_generate_certs) by default if compiled with SSL, or uses mysql_ssl_rsa_setup if compiled with YaSSL.
But how can we check to see if our MySQL client connection uses SSL ?
When using an interactive client, it’s easy! You have two options:
1. Check the status(s):
mysql> s -------------- mysql Ver 14.14 Distrib 5.7.11, for Linux (x86_64) using EditLine wrapper Connection id: 7 …[Read more]