Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2022-11-09 12:29:17 +0300
committerGitHub <noreply@github.com>2022-11-09 12:29:17 +0300
commit9fe6dcf6cc013bf76140aac23a0f400e9b64171e (patch)
tree53c193aff85c12265cf2134a90274d3418a43884 /doc/api/tls.md
parentda44fd8002c9d3cfea48b19c5991c1e60642a9cd (diff)
tls: add "ca" property to certificate object
The objects returned by getPeerCertificate() now have an additional "ca" boolean property that indicates whether the certificate is a Certificate Authority certificate or not. Fixes: https://github.com/nodejs/node/issues/44905 PR-URL: https://github.com/nodejs/node/pull/44935 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'doc/api/tls.md')
-rw-r--r--doc/api/tls.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/tls.md b/doc/api/tls.md
index a9b23fc9750..02e9f53942d 100644
--- a/doc/api/tls.md
+++ b/doc/api/tls.md
@@ -1173,6 +1173,9 @@ certificate.
<!-- YAML
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/44935
+ description: Add "ca" property.
- version:
- v17.2.0
- v16.14.0
@@ -1186,6 +1189,7 @@ changes:
A certificate object has properties corresponding to the fields of the
certificate.
+* `ca` {boolean} `true` if a Certificate Authority (CA), `false` otherwise.
* `raw` {Buffer} The DER encoded X.509 certificate data.
* `subject` {Object} The certificate subject, described in terms of
Country (`C`), StateOrProvince (`ST`), Locality (`L`), Organization (`O`),