If you’re using mysql server with SSL, and ever encountered this error whenever you try to access the database after it’s running:
ERROR 2026 (HY000): SSL connection error
One thing to check is if your client certificate and server certificate have the same common name. You’ve probably went through the certificate generation procedure, and (like I did) just entered the same common name for both without noticing.
This is a nasty error message that doesn’t tell you anything, and there’s nothing in the error log to imply what went wrong. So remember – when generating your own certificates for a mysql server, use different common names for client and server!
Image may be NSFW.
Clik here to view.

Clik here to view.
