Files
librenms-librenms/config/database.php
Shawn Kwang 8027492a29 Mysql PDO options to support SSL/TLS client communication (#15832)
* Fixed mysql connection to include additional options for SSL Cert and Key. This allows for TLS client communication.

* Modified config options for mysql database to make SSL/TLS settings optional.

SSL/TLS CA, CERT, and KEY are optional. If they are not provided the array_filter() will remove them.

MYSQL_ATTR_SSL_VERIFY_SERVER_CERT is outside array_filter() because the function will remove the option if it is falsey; however there are times when that variable must be set to false.

* fix style

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-05-08 07:08:11 -05:00

8.6 KiB