diff options
author | Rich Trott <rtrott@gmail.com> | 2020-08-16 19:54:27 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-08-18 08:11:31 +0300 |
commit | ca5ff723d1390ae1e1434969e8c47a23ae151a21 (patch) | |
tree | 0da4c1e829c4b5cb32f7d953f5d656025186ba6d /doc/api/crypto.md | |
parent | 60d572cf76eee29b7e766f57af1f3f6fb59843a0 (diff) |
doc: deprecate (doc-only) crypto.Certificate()
Documentation-only: Recommend people use the static methods on
crypto.Certificate() and not the legacy API constructor.
PR-URL: https://github.com/nodejs/node/pull/34697
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 20c69f8df1f..539ce6fc79d 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -106,7 +106,9 @@ console.log(Certificate.verifySpkac(Buffer.from(spkac))); ### Legacy API -As a still supported legacy interface, it is possible to create new instances of +> Stability: 0 - Deprecated + +As a legacy interface, it is possible to create new instances of the `crypto.Certificate` class as illustrated in the examples below. #### `new crypto.Certificate()` |