Interface SecurityOptions

Specifies security options for the client.

interface SecurityOptions {
    disableServerCertificateVerification?: boolean;
    trustOnlyCapella?: boolean;
    trustOnlyCertificates?: string[];
    trustOnlyPemFile?: string;
    trustOnlyPemString?: string;
    trustOnlyPlatform?: boolean;
}

Properties

disableServerCertificateVerification?: boolean

If disabled, SDK will trust any certificate regardless of validity. Should not be disabled in production environments.

trustOnlyCapella?: boolean

Specifies the SDK will only trust the Capella CA certificate(s).

trustOnlyCertificates?: string[]

Specifies the SDK will only trust the PEM-encoded certificate(s) specified.

trustOnlyPemFile?: string

Specifies the SDK will only trust the PEM-encoded certificate(s) at the specified file path.

trustOnlyPemString?: string

Specifies the SDK will only trust the PEM-encoded certificate(s) in the specified string.

trustOnlyPlatform?: boolean

Specifies the SDK will only trust the platform certificate(s).