Mariadb/mysql: Fix ssl option on autobackup cmdline and deprecated warnings (#6537)
Fix: error: 2026: "TLS/SSL error: Server certificate validation failed. The certificate's CN name does not match the passed value. Error 0x800B010F(CERT_E_CN_NO_MATCH)" by adding '--ssl-verify-server-cert=false' and updating the modules.
PTR committed
Nov 15, 2024 at 23:04 UTC
dd21f14f4eb75eb4771b93e6c0ae31d5354f7fe4
2 files changed
+3
-3
db.js
+1
-1
@@ -3290,7 +3290,7 @@ module.exports.CreateDB = function (parent, func) {
3290
if (props.ssl) {
3291
sslOptions = ' --ssl';
3292
if (props.ssl.cacertpath) sslOptions = ' --ssl-ca=' + props.ssl.cacertpath;
3293
- if (props.ssl.dontcheckserveridentity != true) sslOptions += ' --ssl-verify-server-cert';
3293
+ if (props.ssl.dontcheckserveridentity != true) {sslOptions += ' --ssl-verify-server-cert'} else {sslOptions += ' --ssl-verify-server-cert=false'};
3294
if (props.ssl.clientcertpath) sslOptions += ' --ssl-cert=' + props.ssl.clientcertpath;
3295
if (props.ssl.clientkeypath) sslOptions += ' --ssl-key=' + props.ssl.clientkeypath;
3296
}
meshcentral.js
+2
-2
@@ -4222,11 +4222,11 @@ function mainStart() {
4222
if (sessionRecording == true) { modules.push('image-size@1.1.1'); } // Need to get the remote desktop JPEG sizes to index the recodring file.
4223
if (config.letsencrypt != null) { modules.push('acme-client@4.2.5'); } // Add acme-client module. We need to force v4.2.4 or higher since olver versions using SHA-1 which is no longer supported by Let's Encrypt.
4224
if (config.settings.mqtt != null) { modules.push('aedes@0.39.0'); } // Add MQTT Modules
4225
- if (config.settings.mysql != null) { modules.push('mysql2@3.6.2'); } // Add MySQL.
4225
+ if (config.settings.mysql != null) { modules.push('mysql2@3.11.4'); } // Add MySQL.
4226
//if (config.settings.mysql != null) { modules.push('@mysql/xdevapi@8.0.33'); } // Add MySQL, official driver (https://dev.mysql.com/doc/dev/connector-nodejs/8.0/)
4227
if (config.settings.mongodb != null) { modules.push('mongodb@4.13.0'); modules.push('saslprep@1.0.3'); } // Add MongoDB, official driver.
4228
if (config.settings.postgres != null) { modules.push('pg@8.13.1') } // Add Postgres, official driver.
4229
- if (config.settings.mariadb != null) { modules.push('mariadb@3.2.2'); } // Add MariaDB, official driver.
4229
+ if (config.settings.mariadb != null) { modules.push('mariadb@3.4.0'); } // Add MariaDB, official driver.
4230
if (config.settings.acebase != null) { modules.push('acebase@1.29.5'); } // Add AceBase, official driver.
4231
if (config.settings.sqlite3 != null) { modules.push('sqlite3@5.1.7'); } // Add sqlite3, official driver.
4232
if (config.settings.vault != null) { modules.push('node-vault@0.10.2'); } // Add official HashiCorp's Vault module.