key and cert; both are required to enable TLS.
key and cert fields expect the contents of your TLS key and certificate, not a path to it. This can be a string, BunFile, TypedArray, or Buffer.
Passphrase
If your private key is encrypted with a passphrase, provide a value forpassphrase to decrypt it.
CA Certificates
Optionally, you can override the trusted CA certificates by passing a value forca. By default, the server will trust the list of well-known CAs curated by Mozilla. When ca is specified, the Mozilla list is overwritten.
Diffie-Hellman
To override Diffie-Hellman parameters:Server name indication (SNI)
To configure the server name indication (SNI) for the server, set theserverName field in the tls object.
tls, each with a serverName field.