Linux 软件免费装

Secure DB Connection

开发者 HypertextRanch
更新时间 2018年7月8日 21:03
捐献地址: 去捐款
PHP版本: 5.2.4 及以上
WordPress版本: 4.9.6
版权: GPLv3
版权网址: 版权信息

标签

secure ssl mysql db encrypted

下载

1.0 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6

详情介绍:

Depending on the MySQL server setup the SSL certs used may not be in the trusted store, if that's the case mysqli_ssl_set() needs to be called to set custom keys and certs before connect. This Plugin adds a custom DB class that allows these settings to be configured via custom constants. This plugin will also add a custom item on the "At a Glance" section of the Dashboard to show if the $wpdb connection is secure or not. Also find me on GitHub.

安装:

For detailed installation instructions, please read the standard installation procedure for WordPress plugins.
  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
  2. Symlink or copy the db.php file from the /wp-content/plugins/secure-db-connection/lib/ directory to the /wp-content/ directory.
  3. Set the relevant defines in your wp-config.php file.
Configuration Parameters To adjust the configuration, define any of the following applicable constants in your wp-config.php file. The path name to the key file. (RSA Key) * MYSQL_SSL_CERT [default: not set] The path name to the certificate file. * MYSQL_SSL_CA [default: not set] The path name to the certificate authority file in PEM format. * MYSQL_SSL_CA_PATH [default: not set] The pathname to a directory that contains trusted SSL CA certificates in PEM format. * MYSQL_SSL_CIPHER [default: not set] A list of allowable ciphers to use for SSL encryption. You can leave this blank if you want to just use the strongest available. Turning on SSL 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. 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: define( 'MYSQL_SSL_CA', '/path/to/rds-combined-ca-bundle.pem' ); 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. define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL ); 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: define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT ); Example Config Aside from setting the normal MySQL connection parameters the minimum configs to get SSL connections to the database will look something like this in wp-config.php: define( 'MYSQL_SSL_CA', '/path/to/ca-bundle.pem' ); define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL );

屏幕截图:

  • 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.

更新日志:

1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0