Interface: ServerTlsOptions
Server-side TLS options (ServerOptions.tls).
Example
import { createServer } from '@cosyte/mllp';
const server = createServer({
tls: { cert: certPem, key: keyPem, clientAuth: 'MUST', ca: clientCaPem },
});
Properties
ca?
readonlyoptionalca?:PemInput
Trust anchor(s) for verifying client certificates under WANT/MUST.
cert
readonlycert:PemInput
Server certificate (PEM). Required.
ciphers?
readonlyoptionalciphers?:string
OpenSSL cipher-list string passthrough. Unset uses Node's defaults (includes both ATNA-mandated ECDHE suites).
Default
undefined (Node defaults)
clientAuth?
readonlyoptionalclientAuth?:ClientAuth
ATNA ITI-19 mutual-authentication mode. 'WANT' requests a client
certificate without rejecting unauthorized/absent ones (surfaced, not
enforced); 'MUST' requests AND enforces verification (ATNA mutual
auth). See ClientAuth.
Default
'NONE'
key
readonlykey:PemInput
Private key matching ServerTlsOptions.cert. Required.
maxVersion?
readonlyoptionalmaxVersion?:"TLSv1.2"|"TLSv1.3"
Maximum negotiated TLS protocol version.
minVersion?
readonlyoptionalminVersion?:"TLSv1.2"|"TLSv1.3"
Minimum negotiated TLS protocol version, the IHE ATNA ITI-19 "TLS 1.2 Floor" (BCP195) floor (ITI TF-2 §3.19.6.2.3).
Default
'TLSv1.2'
passphrase?
readonlyoptionalpassphrase?:string
Passphrase for an encrypted ServerTlsOptions.key.