load default tls certs

This commit is contained in:
AJ ONeal 2015-11-23 08:42:25 +00:00
부모 46aebe069f
커밋 28198dda87
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -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