List of ALPN protocols to be used on platforms which support ALPN
Path to directory containing trust anchors. Only used on Unix-style systems.
Path to a single file with all trust anchors in it, in PEM format
Certificate, in PEM format
String with all trust anchors in it, in PEM format
Path to certificate, in PEM format
Minimum version of TLS to support. Uses OS/system default if unspecified.
Path to certificate, in PKCS#12 format. Currently, only supported on OSX
Password for PKCS#12. Currently, only supported on OSX.
Private key, in PEM format
Path to private key, in PEM format
In client mode, this turns off x.509 validation. Don't do this unless you are testing. It is much better to just override the default trust store and pass the self-signed certificate as the ca_file argument.
In server mode, this defaults to false. If you want to enforce mutual TLS on the server, set this to true.
Overrides the default system trust store.
String containing all trust CAs, in PEM format
Overrides the default system trust store.
Only used on Unix-style systems where all trust anchors are stored in a directory (e.g. /etc/ssl/certs).
Single file containing all trust CAs, in PEM format
Creates a client with secure-by-default options, along with a client cert and private key
Client certificate, in PEM format
Client private key, in PEM format
Creates a client with secure-by-default options, along with a client cert and private key
Path to client certificate, in PEM format
Path to private key, in PEM format
Creates a TLS context with secure-by-default options, along with a client cert and password
Path to client certificate in PKCS#12 format
PKCS#12 password
Creates TLS context with peer verification disabled, along with a certificate and private key
Path to certificate, in PEM format
Path to private key, in PEM format
Creates TLS context with peer verification disabled, along with a certificate and private key in PKCS#12 format
Path to certificate, in PKCS#12 format
PKCS#12 Password
Generated using TypeDoc
Options for creating a ClientTlsContext or ServerTlsContext.
nodejs only.