Skip to main content

Interface: TlsOptions

TLS options for enabling HTTPS on the server.

Properties

ca?

optional ca: string

CA certificate(s) in PEM format, for client certificate verification.


cert

cert: string

TLS certificate chain in PEM format.


key

key: string

TLS private key in PEM format.


passphrase?

optional passphrase: string

Passphrase for an encrypted private key.


requestCert?

optional requestCert: boolean

If true, the server requires a valid client certificate. Implies use of ca.