Interface: TLSConfig
client.TLSConfig
TLS configuration options.
Properties
clientCertPair
• Optional
clientCertPair: Object
Sets the client certificate and key for connecting with mTLS
Type declaration
Name | Type | Description |
---|---|---|
crt | Buffer | The certificate for this client |
key | Buffer | The 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).