Rule ID
SV-286193r1294918_rule
Version
V1R1
CCIs
The DoW standard for authentication is DoW-approved PKI certificates. A certificate’s certification path is the path from the end entity certificate to a trusted root certification authority (CA). Certification path validation is necessary for a relying party to make an informed decision regarding acceptance of an end entity certificate. Certification path validation includes checks such as certificate issuer trust, time validity and revocation status for each certificate in the certification path. Revocation status information for CA and subject certificates in a certification path is commonly provided via certificate revocation lists (CRLs) or online certificate status protocol (OCSP) responses. Database management systems that do not validate certificates by performing RFC 5280-compliant certification path validation are in danger of accepting certificates that are invalid and/or counterfeit. This could allow unauthorized access to the database.
Verify SSL is in use using the following database command: MariaDB> STATUS; Verify the line which starts with "SSL:" is as expected. It should return "cert is OK". If the line returned is "Not in use", this is a finding. If SSL is in use, use the following query to verify the ssl_crlpath: SHOW GLOBAL VARIABLES LIKE %ssl% ; If "ssl_crlpath" is blank, this is a finding.
Configure TLS certificates and restrict the TLS protocol versions. Edit the "mariadb-enterprise.cnf" configuration file located in "/etc/my.cnf.d/". Under [mariadb], add/edit the following: [mariadb] ssl-ca=/etc/my.cnf.d/certs/ca-cert.pem ssl-cert=/etc/my.cnf.d/certs/server-cert.pem ssl-key=/etc/my.cnf.d/certs/server-key.pem tls_version=TLSv1.2,TLSv1.3 This configuration enables TLS encryption and restricts connections to TLS 1.2 and TLS 1.3. Restart the MariaDB server for the configuration changes to take effect: systemctl restart mariadb