Remove toString() on certificate reads as per http://stackoverflow.com/questions/20893025/cant-start-nodejs-https-server-v0-10-23
This commit is contained in:
@ -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'));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user