Does my client need to use the CA certificate to connect to the managed MySQL databases?

Hi! I am trying to use a managed MySQL database with my Rails app. I thought that I had to have the client use the CA certificate that I can download from the DO control panel for the MySQL cluster, but if I specify that I get the error SSL_CTX_set_default_verify_paths failed. If I don’t specify the certificate, I can connect to the database. Since ssl_mode is still set to required in the connection string, can I rest assured that the connection between the database and the clients is encrypted?

Thanks in advance

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @vito

In order to secure your MySQL Managed Database you can check our official documentation:

And check this link as well:

In order to secure MySQL connections on Ubuntu droplet you can check:

Hope this helps. Let me know if you have any questions.

Rregards, Alex