This test program connects to an https server and gets some content. I\'ve checked my server in browsers and with curl and the certificate is working correctly. If I run cur
As per the documentation for https.request
, the ca
option of both https.get
and https.request
is an option from tls.connect. The documentation for the options to the tls.connect
module function states:
ca
: An array of strings or Buffers of trusted certificates. If this is omitted several well known "root" CAs will be used, like VeriSign. These are used to authorize connections.
Digging into the node.js source, the root certs used can be found here: https://github.com/joyent/node/blob/master/src/node_root_certs.h
So in short, with no authority cert provided as an option to https.get
the tls
module will attempt to authenticate the connection using the list of root certs anyway.