how to check node ssl certificate is invalid code example Example: node tls reject unauthorized process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;