MySQL replication/connection failing over SSL

Posted by Marcel Tjandraatmadja on Server Fault See other posts from Server Fault or by Marcel Tjandraatmadja
Published on 2010-04-30T07:50:50Z Indexed on 2010/04/30 7:57 UTC
Read the original article Hit count: 457

Filed under:
|

I set up two MySQL servers where one is replicating from the other. They both work perfectly, but once I turn on SSL I get the following error:

ERROR 2026 (HY000): SSL connection error

I get the same error running from command line like so:

mysql --ssl=1 --ssl-ca=/etc/mysql/certificates/ca-cert.pem --ssl-cert=/etc/mysql/certificates/client-cert.pem --ssl-key=/etc/mysql/certificates/client-key.pem --user=slave --password=slavepassword --host=master.url.com

Both MySQL servers are running on version 5.0.77. There is a difference that MySQL in the master server was compiled under x86_64 while in the slave server under i686. Also both machines are running CentOS 5.

Plus I generated certificates as per this page.

Any idea for finding a solution?

© Server Fault or respective owner

Related posts about mysql

Related posts about ssl