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: use correct tls certificate property name · nodejs/node@cbfc3fc

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
+10-8Lines changed: 10 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -583,13 +583,16 @@ For Example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`
583583
added: v0.11.4
584584
-->
585585

586-
* `detailed` {boolean} Specify `true` to request that the full certificate
587-
chain with the `issuer` property be returned; `false` to return only the
588-
top certificate without the `issuer` property.
586+
* `detailed` {boolean} Include the full certificate chain if `true`, otherwise
587+
include just the peer's certificate.
589588

590589
Returns an object representing the peer's certificate. The returned object has
591590
some properties corresponding to the fields of the certificate.
592591

592+
If the full certificate chain was requested, each certificate will include a
593+
`issuerCertificate` property containing an object representing its issuer's
594+
certificate.
595+
593596
For example:
594597

595598
```text
@@ -600,24 +603,23 @@ For example:
600603
O: 'node.js',
601604
OU: 'Test TLS Certificate',
602605
CN: 'localhost' },
603-
issuerInfo:
606+
issuer:
604607
{ C: 'UK',
605608
ST: 'Acknack Ltd',
606609
L: 'Rhys Jones',
607610
O: 'node.js',
608611
OU: 'Test TLS Certificate',
609612
CN: 'localhost' },
610-
issuer:
611-
{ ... another certificate ... },
613+
issuerCertificate:
614+
{ ... another certificate, possibly with a .issuerCertificate ... },
612615
raw: < RAW DER buffer >,
613616
valid_from: 'Nov 11 09:52:22 2009 GMT',
614617
valid_to: 'Nov 6 09:52:22 2029 GMT',
615618
fingerprint: '2A:7A:C2:DD:E5:F9:CC:53:72:35:99:7A:02:5A:71:38:52:EC:8A:DF',
616619
serialNumber: 'B9B0D332A1AA5635' }
617620
```
618621

619-
If the peer does not provide a certificate, `null` or an empty object will be
620-
returned.
622+
If the peer does not provide a certificate, an empty object will be returned.
621623

622624
### tlsSocket.getProtocol()
623625
<!-- YAML

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.