Monthly Archives: September 2018

MySQL – SSL connection error: socket layer send error (Mysql2::Error)

Assume you’ve already verified your certificates and keys on the sever side (checksum should be the same):

The file under “ssl_ca” has to be located on the client end as well.

On the client side, some versions of MySQL require a connection with a specified “ssl-ca.” This is an example of a client connecting to a MySQL 5.6 server:

This will have to be included in all your clients connecting from the outside. For example Ruby:

Hope that helps!