custom DB URI support (used by Mongo)

This commit is contained in:
Jan Prochazka
2021-04-10 10:47:36 +02:00
parent e8b43820b9
commit 88b4c9daff
6 changed files with 124 additions and 57 deletions

View File

@@ -38,6 +38,10 @@ async function connectUtility(driver, storedConnection) {
connection.ssl.key = await fs.readFile(connection.sslKeyFile);
}
if (connection.sslCertFilePassword) {
connection.ssl.password = connection.sslCertFilePassword;
}
if (!connection.ssl.key && !connection.ssl.ca && !connection.ssl.cert) {
// TODO: provide this as an option in settings
// or per-connection as 'reject self-signed certs'