MySQL OpenSSL error 2026 ‘SSL connection error’ fix

The solution for the very annoying SSL connection error (since MySQL 5.1.38).

You must omit these options : --ssl-cert AND --ssl-key
e.g.

mysql -u bill -p -h 123.456.789.0 --ssl --ssl-ca=/etc/mysql/ca-cert.pem

or

mysql -u bill -p -h 123.456.789.0 --ssl --ssl-ca=/dev/null

Too simple…
…MySQL should fix. It’s been a while since this one lives.
Ciao.