GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify tlsSocket.authorized on resumption · nodejs/node@e48b917

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • tls.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/tls.md‎

Copy file name to clipboardExpand all lines: doc/api/tls.md
+13Lines changed: 13 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,18 @@ added: v0.11.4
10721072
This property is `true` if the peer certificate was signed by one of the CAs
10731073
specified when creating the `tls.TLSSocket` instance, otherwise `false`.
10741074

1075+
The peer certificate is only verified during a full TLS handshake. When a
1076+
connection is established by resuming a previous session (see
1077+
[Session Resumption][]), verification is not repeated. If the client
1078+
presented a certificate in the original handshake, `authorized` and
1079+
`authorizationError` carry the result stored with the session, including
1080+
any verification error. On TLS 1.3, a client that sent no certificate at
1081+
all can resume a session and report `authorized` as `true`, while
1082+
[`tls.TLSSocket.getPeerCertificate()`][] returns an empty object. Servers
1083+
that authorize clients manually with `rejectUnauthorized: false` should
1084+
therefore also check [`tls.TLSSocket.isSessionReused()`][] and that a peer
1085+
certificate is present.
1086+
10751087
### `tlsSocket.disableRenegotiation()`
10761088

10771089
<!-- YAML
@@ -2573,6 +2585,7 @@ added: v0.11.3
25732585
[`tls.TLSSocket.getProtocol()`]: #tlssocketgetprotocol
25742586
[`tls.TLSSocket.getSession()`]: #tlssocketgetsession
25752587
[`tls.TLSSocket.getTLSTicket()`]: #tlssocketgettlsticket
2588+
[`tls.TLSSocket.isSessionReused()`]: #tlssocketissessionreused
25762589
[`tls.TLSSocket.servername`]: #tlssocketservername
25772590
[`tls.TLSSocket`]: #class-tlstlssocket
25782591
[`tls.connect()`]: #tlsconnectoptions-callback

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.