I am using the MySQL 5.7 SSL Setup Guide (combined with a few other guides on the website + google searches).

I have a replica and source working, I am now trying to configure SSL.

My understanding is that MySQL generates the certs we need on startup so I am attempting to use those. I also tried to use the certbot certs I have setup for my domains but those failed (is it possible to use certbot/letsencrypt certs here?). I am just trying to get any SSL connection at this point.

I have my config files setup like so (I've tried a number of configs now)

# This is in the source

# This is in the replica

On the replica if I do mysql -u root -p I get this error: ERROR 2026 (HY000): SSL connection error: SSL_CTX_set_default_verify_paths failed

Looking through the logs on my replica I see that the connection to the source is failing with error code 3159.

Running mysql > status; on source I see that SSL is not in use.

  • Can you connect using other mysql user from client/replica ? Can you provide output of show global variables ? Feb 26, 2021 at 4:47

1 Answer 1


I solved this by using a combo of Digital Ocean Guide and MySQL Guide

On source my.cnf I set require_secure_transport=ON and I removed the path to certs.

On Replicas I had to CHANGE MASTER TO MASTER_SSL=1; and I removed the path to certs.

Digital Ocean Guide has good troubleshooting steps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.