circu.js
    Preparing search index...

    Interface ContextOptions

    SSL Context Options

    interface ContextOptions {
        alpn?: string[];
        ca?: string;
        cert?: string;
        ciphers?: string;
        compression?: boolean;
        dhparam?: string;
        ecdhCurve?: string;
        key?: string;
        maxVersion?: "TLSv1.0" | "TLSv1.1" | "TLSv1.2" | "TLSv1.3";
        minVersion?: "TLSv1.0" | "TLSv1.1" | "TLSv1.2" | "TLSv1.3";
        mode?: "server" | "client";
        servername?: string;
        sessionCache?: boolean;
        sessionTickets?: boolean;
        verify?: boolean;
        verifyHostname?: boolean;
        version?: string;
    }
    Index

    Properties

    alpn?: string[]

    ALPN protocols to advertise

    ca?: string

    CA certificate PEM data for verification

    cert?: string

    Certificate PEM data

    ciphers?: string

    Cipher list string

    compression?: boolean

    Enable compression

    dhparam?: string

    Path to DH parameters file

    ecdhCurve?: string

    ECDH curve name

    key?: string

    Private key PEM data

    maxVersion?: "TLSv1.0" | "TLSv1.1" | "TLSv1.2" | "TLSv1.3"

    Maximum TLS version

    minVersion?: "TLSv1.0" | "TLSv1.1" | "TLSv1.2" | "TLSv1.3"

    Minimum TLS version

    mode?: "server" | "client"

    Operation mode: "server" or "client"

    servername?: string

    Server name for SNI (client mode)

    sessionCache?: boolean

    Enable session cache

    sessionTickets?: boolean

    Enable session tickets

    verify?: boolean

    Enable peer certificate verification

    verifyHostname?: boolean

    Check the peer certificate name against the pipe servername

    version?: string

    SSL/TLS version: "TLS", "TLSv1.2", "TLSv1.3"