content_image/800195.jpg
For information about using encrypted connections from the MySQL C API, see Support for Encrypted Connections. 

## Table 4.4 Connection-Encryption Option Summary 

<img src='content_image/800195.jpg'>

• --get-server-public-key 

Request from the server the public key required for RSA key pair-based password exchange. This option applies to clients that authenticate with the caching_sha2_password  authentication plugin. For that plugin, the server does not send the public key unless requested. This option is ignored for accounts that do not authenticate with that plugin. It is also ignored if RSA-based password exchange is not used, as is the case when the client connects to the server using a secure connection. 

If --server-public-key-path= file_name  is given and specifies a valid public key file, it takes precedence over --get-server-public-key . 

For information about the caching_sha2_password  plugin, see Section 6.4.1.2, “Caching SHA-2 Pluggable Authentication” . 

• --server-public-key-path= file_name 

The path name to a file in PEM format containing a client-side copy of the public key required by the server for RSA key pair-based password exchange. This option applies to clients that authenticate with the sha256_password  or caching_sha2_password  authentication plugin. This option is ignored for 

