qbit-rpc
    Preparing search index...

    Interface RpcTlsOptions

    TLS settings for an https endpoint, such as a TLS terminator in front of qbitd, which serves plain HTTP. Each is checked when the client is constructed. The node's certificate is always verified: there is no option to turn that off.

    interface RpcTlsOptions {
        ca?:
            | string
            | Buffer<ArrayBufferLike>
            | readonly (string | Buffer<ArrayBufferLike>)[];
        cert?: string | Buffer<ArrayBufferLike>;
        key?: string | Buffer<ArrayBufferLike>;
        passphrase?: string;
        pinSha256?: string | readonly string[];
        servername?: string;
    }
    Index
    ca?:
        | string
        | Buffer<ArrayBufferLike>
        | readonly (string | Buffer<ArrayBufferLike>)[]

    PEM CA certificates to trust instead of the system's: a string or Buffer holding one or more, or an array of them. Default: the system's CAs.

    cert?: string | Buffer<ArrayBufferLike>

    A PEM client certificate, then any intermediate certificates, for a terminator that requires one. Needs key.

    key?: string | Buffer<ArrayBufferLike>

    The PEM private key of cert. Needs cert.

    passphrase?: string

    Decrypts an encrypted key. Used once, at construction, and not kept.

    pinSha256?: string | readonly string[]

    The base64 SHA-256 of the SubjectPublicKeyInfo (the public key) the node's certificate must carry, or several (the current key and the next, for rotation). Checked on every connection, after the CA and name checks, which still apply. Default: no pin.

    servername?: string

    The host name the node's certificate must carry, also sent in SNI, instead of the URL's host: for a URL that names an address, or another name. Default: the URL's host.