diff options
author | James M Snell <jasnell@gmail.com> | 2021-01-05 08:27:20 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-01-09 23:04:23 +0300 |
commit | f5287a4b7b0b14f69b264d8017b76c100f5bc2c1 (patch) | |
tree | 7700f054e20379efd263fe98597a3bcf995ec2cf /doc/api/worker_threads.md | |
parent | 324a6c235a5bfcbcd7cc7491d55461915c10af34 (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 'doc/api/worker_threads.md')
-rw-r--r-- | doc/api/worker_threads.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index e745b5aa799..f7dfea6b9ea 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -474,6 +474,9 @@ are part of the channel. <!-- YAML added: v10.5.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/36804 + description: Added `X509Certificate` tot he list of cloneable types. - version: - v14.5.0 - v12.19.0 @@ -501,8 +504,8 @@ In particular, the significant differences to `JSON` are: * `value` may contain typed arrays, both using `ArrayBuffer`s and `SharedArrayBuffer`s. * `value` may contain [`WebAssembly.Module`][] instances. -* `value` may not contain native (C++-backed) objects other than `MessagePort`s, - [`FileHandle`][]s, and [`KeyObject`][]s. +* `value` may not contain native (C++-backed) objects other than {MessagePort}s, + {FileHandle}s, {KeyObject}s, and {X509Certificate}s. ```js const { MessageChannel } = require('worker_threads'); @@ -1129,7 +1132,6 @@ active handle in the event system. If the worker is already `unref()`ed calling [`ERR_WORKER_NOT_RUNNING`]: errors.md#ERR_WORKER_NOT_RUNNING [`EventTarget`]: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget [`FileHandle`]: fs.md#fs_class_filehandle -[`KeyObject`]: crypto.md#crypto_class_keyobject [`MessagePort`]: #worker_threads_class_messageport [`SharedArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer [`Uint8Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array |