Hi everyone,
I set up a LAMP Environment on my Raspi 3. As I would like to make the MariaDB available from clients in the Internet, I was looking for a solution to use SSL for encryption. I used this manual:
https://www.cyberciti.biz/faq/how-to-setup-mariadb-ssl-and-secure-connections-from-clients/
Everything works fine until I set ssl_cert = /etc/mysql/ssl/server-cert.pem. In this case the variable have_ssl changes to DISABLED.
MariaDB [(none)]> SHOW VARIABLES LIKE ‘%ssl%’;
+---------------------+----------------------------+
| Variable_name | Value |
+---------------------+----------------------------+
| have_openssl | NO |
| have_ssl | YES |
| ssl_ca | /etc/mysql/ssl/ca-cert.pem |
| ssl_capath | /etc/mysql/capath |
| ssl_cert | |
| ssl_cipher | |
| ssl_crl | |
| ssl_crlpath | |
| ssl_key | |
| version_ssl_library | YaSSL 2.4.2 |
+---------------------+----------------------------+
MariaDB [(none)]> SHOW VARIABLES LIKE '%ssl%';
+---------------------+--------------------------------+
| Variable_name | Value |
+---------------------+--------------------------------+
| have_openssl | NO |
| have_ssl | DISABLED |
| ssl_ca | /etc/mysql/ssl/ca-cert.pem |
| ssl_capath | /etc/mysql/capath |
| ssl_cert | /etc/mysql/ssl/server-cert.pem |
| ssl_cipher | |
| ssl_crl | |
| ssl_crlpath | |
| ssl_key | |
| version_ssl_library | YaSSL 2.4.2 |
+---------------------+--------------------------------+
I checked the mysql fault log, but no mesages at all. The path seems right.
Is there a way to create error messages to see why have_ssl changes? I am wondering that usually there are huge logs to investigate for error reasons, and for SSL connection there is not a single entry?
How can I determine, why have_ssl changed to DISABLED? Which requirements have to be fulfilled to change to yes? I couldn’t find information on this in the maria reference or in forums.
Thank you very much in advance.
Cheers,
Markus