Skip to main content

Interface: TLSConfig

client.TLSConfig

TLS configuration options.

Properties

clientCertPair

Optional clientCertPair: Object

Sets the client certificate and key for connecting with mTLS

Type declaration

NameTypeDescription
crtBufferThe certificate for this client
keyBufferThe private key for this client

serverNameOverride

Optional serverNameOverride: string

Overrides the target name used for SSL host name checking. If this attribute is not specified, the name used for SSL host name checking will be the host from {@link ServerOptions.url}. This should be used for testing only.


serverRootCACertificate

Optional serverRootCACertificate: Buffer

Root CA certificate used by the server. If not set, and the server's cert is issued by someone the operating system trusts, verification will still work (ex: Cloud offering).