Enabling Secure MySQL Connections: A Guide to Encrypted Communication

thumb_up 1  ·  sell Encrypted MySQL connections, Secure MySQL communication, Enabling SSL for MySQL

To use WHMCS with an encrypted MySQL® connection, you will need to perform additional steps to configure the necessary settings to the configuration.php file.

For steps to configure encrypted MySQL connections on cPanel & WHM servers, see cPanel's How to Configure MySQL SSL Connections Documentation.

You cannot configure this before or during the installation process using the browser-based installation method. Because of this, you cannot use the browser-based method if your server requires encrypted connections.

Configuration Before Installation (CLI)

To enable encrypted MySQL connections before proceeding with the CLI-based installation method:

  1. Open the configuration.php file in your preferred text editor.
  2. Update the necessary configuration settings, replacing the example values below with your server's information:
$db_tls_ca='/path/to/ca/file';
$db_tls_ca_path='/path/to/ca/directory';
$db_tls_cert='/path/to/client/cert';
$db_tls_cipher='AES256-SHA';
$db_tls_key='/path/to/client/key';
$db_tls_verify_cert='0';
 

The settings that you configure will depend on your server's configuration.

3. Proceed with installation via the command line.

Configuration During Installation (CLI)

To enable encrypted MySQL connections during the CLI-based installation process, use the -c or --config options while running the command-line installation script.

Include the following lines in your JSON input, replacing the example values below with your server's information:

"db_tls_ca":"'/path/to/ca/file'",
"db_tls_ca_path":"'/path/to/ca/directory'",
"db_tls_cert":"'/path/to/client/cert'",
"db_tls_cipher":"'AES256-SHA'",
"db_tls_key":"'/path/to/client/key'",
"db_tls_verify_cert":"'0'",
 

The settings that you configure will depend on your server's configuration.

Configuration After Installation (CLI or Browser)

To enable encrypted MySQL connections after you have completed installation:

  1. Open the configuration.php file in your preferred text editor.
  2. Update the necessary configuration settings, replacing the example values below with your server's information:
$db_tls_ca='/path/to/ca/file';
$db_tls_ca_path='/path/to/ca/directory';
$db_tls_cert='/path/to/client/cert';
$db_tls_cipher='AES256-SHA';
$db_tls_key='/path/to/client/key';
$db_tls_verify_cert='0';
 

The settings that you configure will depend on your server's configuration.

 

The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.

Was this answer helpful?

Related Articles

description

Step-by-Step Guide to Installing WHMCS

To start using WHMCS, you will need to install it on your server. You may need help from your hosting provider or system administrator…

arrow_forward
description

Configuring cPanel Site Software for WHMCS Integration: A How-To Guide

You can install WHMCS using cPanel's Site Software feature. Before you can perform the installation, a WHM user must enable WHMCS…

arrow_forward
description

Effortless WHMCS Installation Using cPanel Site Software: A Step-by-Step Tutorial

You can install WHMCS easily using cPanel's Site Software feature. To do this: 1. If you have not already done so, configure…

arrow_forward
description

Configuring WHMCS Cron Jobs: Step-by-Step Setup Guide

You will need to configure the cron job as soon as you finish installing WHMCS. The cron job executes WHMCS's automation tasks,…

arrow_forward
description

Customizing the WHMCS Cron Schedule: Configuration Guide

The WHMCS cron job performs many of the automated tasks for your WHMCS installation. You can customize when and how often it runs…

arrow_forward
arrow_back « Back