rejectUnauthorized

The Node.js TLS option, true by default, that makes a connection fail when the server's certificate cannot be verified.

With it disabled any attacker on the network can impersonate the server and read or change all traffic.

In more detail

Setting it to false, or setting NODE_TLS_REJECT_UNAUTHORIZED=0, turns off certificate checks entirely. Trust an internal certificate authority with the ca option instead.

Related terms

Taught in

References