I am making an https request (using the request module) to a server with a self-signed cert. It throws an error if I don\'t specify strictSSL: false
as an opti
There is not a store. You can pass a ca
option to the https request to tell it what CAs you do trust.
From the docs:
The following options from
tls.connect()
can also be specified. However, aglobalAgent
silently ignores these.
ca
: An authority certificate or array of authority certificates to check the remote host against.In order to specify these options, use a custom
Agent
.var options = { ... ca: CA or [array of CAs] ... }; options.agent = new https.Agent(options); var req = https.request(options, function(res) {
Ref: http://nodejs.org/api/https.html#https_https_request_options_callback