From b3b9944171a6f5fd3f80b11be9e1cbae07887bb8 Mon Sep 17 00:00:00 2001 From: David Lundgren Date: Fri, 13 Sep 2019 12:54:51 -0500 Subject: [PATCH] Set the DEFAULT_ECDH_CURVE to auto (#15245) --- packages/rocketchat-mongo-config/server/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/rocketchat-mongo-config/server/index.js b/packages/rocketchat-mongo-config/server/index.js index 833c5f7ccdcfc..2ae076c67a798 100644 --- a/packages/rocketchat-mongo-config/server/index.js +++ b/packages/rocketchat-mongo-config/server/index.js @@ -1,4 +1,12 @@ import { Mongo } from 'meteor/mongo'; +import tls from 'tls'; + +// FIX For TLS error see more here https://github.com/RocketChat/Rocket.Chat/issues/9316 +// TODO: Remove after NodeJS fix it, more information +// https://github.com/nodejs/node/issues/16196 +// https://github.com/nodejs/node/pull/16853 +// This is fixed in Node 10, but this supports LTS versions +tls.DEFAULT_ECDH_CURVE = 'auto'; const mongoOptionStr = process.env.MONGO_OPTIONS; if (typeof mongoOptionStr !== 'undefined') {