Optional ReadonlycaPEM 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.
Optional ReadonlycertA PEM client certificate, then any intermediate certificates, for a terminator that requires one. Needs key.
Optional ReadonlykeyThe PEM private key of cert. Needs cert.
Optional ReadonlypassphraseDecrypts an encrypted key. Used once, at construction, and not kept.
Optional ReadonlypinThe 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.
Optional ReadonlyservernameThe 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.
TLS settings for an
httpsendpoint, 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.