@reldens/server-utils 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,6 +16,7 @@ const express = require('express');
|
|
|
16
16
|
const bodyParser = require('body-parser');
|
|
17
17
|
const session = require('express-session');
|
|
18
18
|
const compression = require('compression');
|
|
19
|
+
const tls = require('tls');
|
|
19
20
|
|
|
20
21
|
class AppServerFactory
|
|
21
22
|
{
|
|
@@ -387,7 +388,7 @@ class AppServerFactory
|
|
|
387
388
|
this.error = {message: 'Could not read domain SSL certificate: '+domain.certPath};
|
|
388
389
|
return callback(null, null);
|
|
389
390
|
}
|
|
390
|
-
let ctx =
|
|
391
|
+
let ctx = tls.createSecureContext({key, cert});
|
|
391
392
|
callback(null, ctx);
|
|
392
393
|
};
|
|
393
394
|
return https.createServer(httpsOptions, this.app);
|