Find certificates and include them by direct name
This commit is contained in:
		| @@ -9,4 +9,6 @@ default-character-set = utf8mb4 | ||||
| # If you use the same .cnf file for MySQL and MariaDB, | ||||
| # use it for MariaDB-only client options | ||||
| [client-mariadb] | ||||
| ssl | ||||
| ssl-verify-server-cert | ||||
|  | ||||
|   | ||||
| @@ -20,8 +20,17 @@ log-error=/var/log/mariadb/mariadb.log | ||||
| pid-file=/run/mariadb/mariadb.pid | ||||
| character-set-server = utf8mb4 | ||||
| ssl-ca=/etc/pki/tls/certs/ca-bundle.crt | ||||
| ssl-cert=/etc/httpd/md/domains/*/pubcert.pem | ||||
| ssl-key=/etc/httpd/md/domains/*/privkey.pem | ||||
| {% for certificate in certificates.files %} | ||||
| {% if certificate.path is regex('/pubcert.pem$') %} | ||||
| ssl-cert={% certificate.path %} | ||||
| {% endif %} | ||||
| {% endfor %} | ||||
| {% for certificate in certificates.files %} | ||||
| {% if certificate.path is regex('/privkey.pem$') %} | ||||
| ssl-key={% certificate.path %} | ||||
| {% endif %} | ||||
| {% endfor %} | ||||
| tls-version=TLSv1.2,TLSv1.3 | ||||
|  | ||||
|  | ||||
| # | ||||
|   | ||||
		Reference in New Issue
	
	Block a user