> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# tls-verification-disabled

> A TLS client skips certificate or server hostname verification.

## What it flags

A literal `rejectUnauthorized: false`, `strictSSL: false` or `NODE_TLS_REJECT_UNAUTHORIZED = '0'`. Under a non-production guard it is contextual; database `ssl` options count too. A Node TLS or HTTPS `createServer` call, or an HTTP/2 `createSecureServer` call, with `rejectUnauthorized: false` in an inline object literal or a `const` options binding used only as the server argument, is not flagged when `requestCert` is absent or `false`. Options held in `let` variables are still flagged. When `requestCert: true`, the finding states that client certificate verification is turned off.

An inline Node HTTPS agent callback that discards the result of the built-in `tls.checkServerIdentity()` is also flagged. The callback must return a hostname verification error or handle it. The certificate chain can still be checked while the hostname error is lost. This case requires a manual fix.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "tls-verification-disabled": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.