From 103db208e949ce68cc3034dcb5ae7d4ec44c5f42 Mon Sep 17 00:00:00 2001 From: Nicolas Riesco Date: Fri, 18 May 2018 16:33:33 +0100 Subject: [PATCH] certificates: fix handshake failure in node v8 * See https://github.com/nodejs/node/issues/16196 for further details about the cause. --- backend/certificates.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/certificates.js b/backend/certificates.js index 8edfec671..3fe6746c2 100644 --- a/backend/certificates.js +++ b/backend/certificates.js @@ -1,6 +1,10 @@ import {getSetting, saveSetting} from './settings.js'; import * as fs from 'fs'; -import fetch from 'node-fetch'; + +const https = require('https'); +https.globalAgent.options.ecdhCurve = 'auto'; // fix default in node v8 +const fetch = require('node-fetch'); + import Logger from './logger'; import {fakeCerts} from '../test/backend/utils';