Skip to main content
SecureContextOptions.maxVersion - node__tls.d.ts - Node documentation
property SecureContextOptions.maxVersion

Usage in Deno

```typescript import { type SecureContextOptions } from "node:node__tls.d.ts"; ```
Optionally set the maximum TLS version to allow. One of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the `secureProtocol` option, use one or the other. **Default:** `'TLSv1.3'`, unless changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used.

Type

SecureVersion | undefined