Then once Matomo is working, obtain SSL keys and certificate files generated using the same version of openssl as MySQL

in your config/config.ini.php’s [database] section, set the ssl_cert, ssl_key, ssl_ca to absolute paths to the required files (and make sure PHP can read those files or you’ll get strange MySQL errors)

Optionally set ssl_cipher to your desired cipher

If you’re using a self signed certificate (& your PHP version has a PDO/MySQLi that supports skipping the verification check), set the ssl_no_verify option to 1.

Verify in the Matomo (Piwik) system check that you are using an SSL connection to the database. You may also want to change your database password.

For example when using AWS RDS, here is an example configuration (where rds-combined-ca-bundle.pemis downloaded from here):

Feedback on this page

Name (required)

Email (required)

Your feedback (required)

Your information will be used only to improve our pages and to answer you. Your data will be processed by us, our hosting provider, and our support ticket provider. For more information have a look at our privacy policy.

Become a partner

Privacy

Sign up for our newsletter

We are constantly adding new features and content to the leading All-In-One Analytics Platform that gives you control over your data. If you want to stay up to date with everything that is happening, feel free to subscribe below. You can unsubscribe at any time from it. The newsletter service uses MadMimi. Learn more about it within our privacy Policy page.