Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions doc/api/quic.md
Original file line number Diff line number Diff line change
Expand Up @@ -2914,16 +2914,15 @@ await listen((session) => { /* ... */ }, {
});
```

#### `sessionOptions.ca` (client only)
#### `sessionOptions.ca`

<!-- YAML
added: v23.8.0
-->

* Type: {ArrayBuffer|ArrayBufferView|ArrayBuffer\[]|ArrayBufferView\[]}

The CA certificates to use for client sessions. For server sessions, CA
certificates are specified per-identity in the [`sessionOptions.sni`][] map.
The CA certificates to use for sessions.

#### `sessionOptions.cc`

Expand Down Expand Up @@ -2987,16 +2986,15 @@ added: v23.8.0

The list of supported TLS 1.3 cipher algorithms.

#### `sessionOptions.crl` (client only)
#### `sessionOptions.crl`

<!-- YAML
added: v23.8.0
-->

* Type: {ArrayBuffer|ArrayBufferView|ArrayBuffer\[]|ArrayBufferView\[]}

The CRL to use for client sessions. For server sessions, CRLs are specified
per-identity in the [`sessionOptions.sni`][] map.
The CRL to use for sessions.

#### `sessionOptions.enableEarlyData`

Expand Down Expand Up @@ -3290,7 +3288,6 @@ contain:
* `keys` {KeyObject|KeyObject\[]} The TLS private keys. **Required.**
* `certs` {ArrayBuffer|ArrayBufferView|ArrayBuffer\[]|ArrayBufferView\[]}
The TLS certificates. **Required.**
Optional certificate revocation lists.
* `verifyPrivateKey` {boolean} Verify the private key. Default: `false`.
* `port` {number} The port to advertise in ORIGIN frames (RFC 9412) for
this host name. **Default:** `443`. Only used for HTTP/3 sessions.
Expand All @@ -3304,7 +3301,7 @@ const endpoint = await listen(callback, {
sni: {
'*': { keys: [defaultKey], certs: [defaultCert] },
'api.example.com': { keys: [apiKey], certs: [apiCert], port: 8443 },
'www.example.com': { keys: [wwwKey], certs: [wwwCert], ca: [customCA] },
'www.example.com': { keys: [wwwKey], certs: [wwwCert] },
'internal.example.com': { keys: [intKey], certs: [intCert], authoritative: false },
},
});
Expand Down
Loading