Changeset 1480064
- Timestamp:
- 08/21/2016 04:41:55 PM (9 years ago)
- Location:
- secure-db-connection
- Files:
-
- 7 added
- 1 deleted
- 3 edited
-
assets/screenshot-1.png (added)
-
trunk (modified) (1 prop)
-
trunk/includes/db.php (deleted)
-
trunk/languages (added)
-
trunk/languages/secure-db-connection.pot (added)
-
trunk/lib (added)
-
trunk/lib/admin.php (added)
-
trunk/lib/db.php (added)
-
trunk/lib/dropin.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/secure-db-connection.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
secure-db-connection/trunk
- Property svn:ignore
-
old new 1 1 .git 2 assets
-
- Property svn:ignore
-
secure-db-connection/trunk/readme.txt
r1480049 r1480064 4 4 Requires at least: 3.9 5 5 Tested up to: 4.6 6 Stable tag: 1. 06 Stable tag: 1.1.0 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html 9 9 10 Sets SSL keys and certs for encrypted database connections.10 Sets SSL keys and certs for encrypted MySQL database connections. 11 11 12 12 == Description == … … 46 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. 47 47 48 ``` 49 define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL ); 50 ``` 48 define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL ); 51 49 52 50 If you are using the MySQL Native Driver and MySQL 5.6 or later `mysqli_real_connect()` will verify the server SSL certificate before connecting. If the SSL cert installed on the MySQL server your are connecting to is not valid PHP will refuse to connect. A flag was added to disable server certificate validation. If your server has an invalid certificate turn on SSL and turn off validation like so: 53 51 54 ``` 55 define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT ); 56 ``` 52 define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT ); 57 53 58 54 == Installation == … … 60 56 For detailed installation instructions, please read the [standard installation procedure for WordPress plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins). 61 57 62 1. Install and activate plugin. 63 1. Symlink or copy the `db.php` file from the `/plugins/secure-db-connection/includes/` directory to the `/wp-content/` directory. 64 1. Set the relevant defines in your `wp-config.php` file. 58 1. Install and activate plugin, if the filesystem is writable the Secure DB Connection dropin will be installed for you automatically. If not proceed to step 2 59 2. Symlink or copy the `db.php` file from the `/wp-content/plugins/secure-db-connection/lib/` directory to the `/wp-content/` directory. 60 3. Set the relevant defines in your `wp-config.php` file. 61 62 == Screenshots == 63 64 1. An at a glance item is added showing the status of the MySQL connection when this plugin is activated. If the connection is encrypted the SSL version and cipher used will also be shown. 65