Skip to content

Commit ae41303

Browse files
committed
Clearify Usage Docs
Fixes #1
1 parent efeb120 commit ae41303

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

readme.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,25 @@ To adjust the configuration, define any of the following applicable constants in
3131

3232
* `MYSQL_SSL_CA` [default: not set]
3333

34-
The path name to the certificate authority file.
34+
The path name to the certificate authority file in PEM format.
3535

3636
* `MYSQL_SSL_CA_PATH` [default: not set]
3737

3838
The pathname to a directory that contains trusted SSL CA certificates in PEM format.
3939

4040
* `MYSQL_SSL_CIPHER` [default: not set]
4141

42-
A list of allowable ciphers to use for SSL encryption
42+
A list of allowable ciphers to use for SSL encryption. You can leave this blank if you want to just use the strongest available.
4343

4444
= Turning on SSL =
4545

46-
Once SSL keys and certs have been configured you via the defines above define an WP core constant to pass a use SSL flag to the mysqli client also in your `wp-config.php` file.
46+
First please note, only the `mysqli` (MySQL Improved) extension is supported this is the default extension used by WordPress however if you do not have the extension installed WordPress will fallback on the much older mysql extension which does not support secure connections.
47+
48+
Depending on your database configuration you may not need to set all the available options. For example when connecting to RDS Amazon helpfully provides a certificate bundle so once that's downloaded to the server all that's need is to set the CA option:
49+
50+
define( 'MYSQL_SSL_CA', '/path/to/rds-combined-ca-bundle.pem' );
51+
52+
Once SSL keys / certs have been configured you via the defines above define an WP core constant to pass a use SSL flag to the mysqli client also in your `wp-config.php` file.
4753

4854
define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL );
4955

0 commit comments

Comments
 (0)