|
@ -33,7 +33,6 @@ function Credentials (method) { |
|
|
this.context.init(); |
|
|
this.context.init(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.shouldVerify = false; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
exports.Credentials = Credentials; |
|
|
exports.Credentials = Credentials; |
|
@ -48,7 +47,6 @@ exports.createCredentials = function (options) { |
|
|
if (options.cert) c.context.setCert(options.cert); |
|
|
if (options.cert) c.context.setCert(options.cert); |
|
|
|
|
|
|
|
|
if (options.ca) { |
|
|
if (options.ca) { |
|
|
c.shouldVerify = true; |
|
|
|
|
|
if (Array.isArray(options.ca)) { |
|
|
if (Array.isArray(options.ca)) { |
|
|
for (var i = 0, len = options.ca.length; i < len; i++) { |
|
|
for (var i = 0, len = options.ca.length; i < len; i++) { |
|
|
c.context.addCACert(options.ca[i]); |
|
|
c.context.addCACert(options.ca[i]); |
|
|