My Oracle Support Banner

MySQL SSL Connections Explained (Doc ID 2297451.1)

Last updated on APRIL 12, 2022

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.


High level overview of MySQL and SSL.

First place to start for context and knowledge is the SSL/TLS pages in the manual;

It is recommended that some background knowledge of secure key exchange and or public key encryption is understood, however, it is not necessary to understand how SSL works, to set up an SSL connection to the Server.


Further recommended reading to build background knowledge on how SSL/TLS operates and how the initial exchange of keys occurs can be found;


MySQL Server typically will use DH secure key exchange to initialise a secure connection which then will use a symetric-key cipher to maintain the encryption of the connection until terminated.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 High level overview of MySQL and SSL.
 MySQL Command line client example
 Self signed vs Public Trusted CA.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.