load default tls certs
This commit is contained in:
parent
46aebe069f
commit
28198dda87
|
@ -25,6 +25,9 @@ module.exports.create = function (certPaths, serverCallback) {
|
||||||
, honorCipherOrder: true
|
, honorCipherOrder: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
secureContexts['www.example.com'] = require('tls').createSecureContext(secureOpts);
|
||||||
|
secureContexts['example.com'] = secureContexts['www.example.com'];
|
||||||
|
|
||||||
//SNICallback is passed the domain name, see NodeJS docs on TLS
|
//SNICallback is passed the domain name, see NodeJS docs on TLS
|
||||||
secureOpts.SNICallback = function (domainname, cb) {
|
secureOpts.SNICallback = function (domainname, cb) {
|
||||||
// NOTE: '*.proxyable.*' domains will be truncated
|
// NOTE: '*.proxyable.*' domains will be truncated
|
||||||
|
|
Loading…
Reference in New Issue