NodeJS Disable SSL Verification on Request

Posted on April 15, 2020 at 9:37 am

You can set strictSSL to false on NodeJs request:

var options = {
    url:  'http://url',
    strictSSL: false
request(options, function(err, resp, body) {});

More information can be found here:

strictSSL – if true, requires SSL certificates be valid. Note: to use your own certificate authority, you need to specify an agent that was created with that CA as an option.

Additionally, you can disable TLS validation with:


Add that at the beginning.

Receive updates via email

Other Posts

Updated Posts