From e782e0310f4aef3b5a47786aa9d51353229fc992 Mon Sep 17 00:00:00 2001 From: terakilobyte Date: Tue, 16 Jun 2015 15:04:20 -0400 Subject: [PATCH] Remove toString() on certificate reads as per http://stackoverflow.com/questions/20893025/cant-start-nodejs-https-server-v0-10-23 --- server/ssl-config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/ssl-config.js b/server/ssl-config.js index 7ac90dc7cf..6cbf418971 100644 --- a/server/ssl-config.js +++ b/server/ssl-config.js @@ -8,9 +8,9 @@ var fs = require('fs'); if (process.env.NODE_ENV === 'production') { exports.privateKey = fs.readFileSync(path.join(__dirname, - '../../private/privatekey.pem')).toString(); + '../../private/privatekey.pem')); exports.certificate = fs.readFileSync(path.join(__dirname, - '../../private/certificate.pem')).toString(); + '../../private/certificate.pem')); }