I am trying to connect to a MySQL server over SSL, however am getting the error:
Unable to establish SSL connection
Steps taken:
- In MySQL Workbench, used the SSL Wizard to certificates and keys.
- Uploaded
ca-cert.pem,server-cert.pem, andserver-key.pemto the server. In my.cnf on the server, added the following:
[mysqld] ssl-ca=/path/to/ca-cert.pem ssl-cert=/path/to/server-cert.pem ssl-key=/path/to/server-key.pemRestarted MySQL service on the server.
Back in MySQL Workbench, set the connection to require SSL and use the files
ca-cert.pem,client-cert.pem, andclient-key.pemstored in my local computer.Tested the connection in Workbench, got the 'Unable to establish SSL connection' error.
I have also noticed that running show global variables like 'have_%ssl'; shows that have_ssl is disabled.