Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#61856 new enhancement

Add support for MySQL SSL connections

Reported by: markhadjar's profile markhadjar Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.7
Component: Database Keywords: has-patch
Focuses: Cc:

Description

Hello

I have seen demand for enabling secure database connections across WordPress.org forums, Reddit, and other communities. There is also an older ticket discussing it. https://core.trac.wordpress.org/ticket/24816

I have created a pull request that enables secure database connections.

Change History (2)

This ticket was mentioned in PR #7177 on WordPress/wordpress-develop by markhadjar.


5 months ago
#1

  • Keywords has-patch added

This adds support for secure database connections.

Set the following in wp-config.php to enable secure database connections.

Enable secure database connections
define( 'DB_SSL', true );

Set the path to the SSL key
define( 'DB_SSL_KEY', '/path/to/client-key.pem' );

Set the path to the SSL cert
define( 'DB_SSL_CERT', '/path/to/client-cert.pem' );

Set the path to the SSL Certificate Authority
define( 'DB_SSL_CA', '/path/to/ca.pem');

#2 @ayeshrajans
5 months ago

Hi @markhadjar - welcome to WordPress Trac.

See #28625 for a similar ticket that also proposed this.

Note: See TracTickets for help on using tickets.