Judging by the documentation and sources ( 1 , 2 ), it should be possible to pass a request
options object that contains something like
options = { secureProtocol: 'TLSv1_method' }
to use TLSv1 (and only that) for this particular connection.
By default, OpenSSL SSLv23_method is used, which means using the highest version of TLS / SSL, which may be understood by both parties.
Although this is possible in OpenSSL itself, it is impossible to blacklist a specific version of TLS (as in the case of using the maximum possible version, but never the same) in node.js, as far as I can see, flags for this are not exported to node.js.
source share