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
path: root/tools
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2021-01-05 08:27:20 +0300
committerDanielle Adams <adamzdanielle@gmail.com>2021-01-12 15:10:52 +0300
commitc4ad50e0ffa6fabb17da07e7ad33f2569b2a7a4a (patch)
tree01df123914a53a6b38c1be8f2cdfbab1934418c1 /tools
parent41e278bf6105327a578a9961c3ed8bcd38703a40 (diff)
crypto: introduce X509Certificate API
Introduces the `crypto.X509Certificate` object. ```js const { X509Certificate } = require('crypto'); const x509 = new X509Certificate('{pem encoded cert}'); console.log(x509.subject); ``` Fixes: https://github.com/nodejs/node/issues/29181 Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/36804 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/type-parser.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js
index 72a2ec41994..624ff0974d9 100644
--- a/tools/doc/type-parser.js
+++ b/tools/doc/type-parser.js
@@ -217,6 +217,8 @@ const customTypesMap = {
'MessagePort': 'worker_threads.html#worker_threads_class_messageport',
+ 'X509Certificate': 'crypto.html#crypto_class_x509certificate',
+
'zlib options': 'zlib.html#zlib_class_options',
};