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:
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r--doc/api/crypto.md52
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md
index b7977120fa4..797e17bdecb 100644
--- a/doc/api/crypto.md
+++ b/doc/api/crypto.md
@@ -1647,7 +1647,7 @@ be passed instead of a public key.
## Class: `X509Certificate`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
Encapsulates an X509 certificate and provides read-only access to
@@ -1663,7 +1663,7 @@ console.log(x509.subject);
### `new X509Certificate(buffer)`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `buffer` {string|TypedArray|Buffer|DataView} A PEM or DER encoded
@@ -1671,7 +1671,7 @@ added: REPLACEME
### `x509.ca`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {boolean} Will be `true` if this is a Certificate Authority (ca)
@@ -1679,7 +1679,7 @@ added: REPLACEME
### `x509.checkEmail(email[, options])`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `email` {string}
@@ -1696,7 +1696,7 @@ Checks whether the certificate matches the given email address.
### `x509.checkHost(name[, options])`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `name` {string}
@@ -1713,7 +1713,7 @@ Checks whether the certificate matches the given host name.
### `x509.checkIP(ip[, options])`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `ip` {string}
@@ -1730,7 +1730,7 @@ Checks whether the certificate matches the given IP address (IPv4 or IPv6).
### `x509.checkIssued(otherCert)`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `otherCert` {X509Certificate}
@@ -1740,7 +1740,7 @@ Checks whether this certificate was issued by the given `otherCert`.
### `x509.checkPrivateKey(privateKey)`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `privateKey` {KeyObject} A private key.
@@ -1751,7 +1751,7 @@ the given private key.
### `x509.fingerprint`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1760,7 +1760,7 @@ The SHA-1 fingerprint of this certificate.
### `x509.fingerprint256`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1769,7 +1769,7 @@ The SHA-256 fingerprint of this certificate.
### `x509.infoAccess`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1778,7 +1778,7 @@ The information access content of this certificate.
### `x509.issuer`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1787,7 +1787,7 @@ The issuer identification included in this certificate.
### `x509.keyUsage`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string[]}
@@ -1796,7 +1796,7 @@ An array detailing the key usages for this certificate.
### `x509.publicKey`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {KeyObject}
@@ -1805,7 +1805,7 @@ The public key {KeyObject} for this certificate.
### `x509.raw`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {Buffer}
@@ -1814,7 +1814,7 @@ A `Buffer` containing the DER encoding of this certificate.
### `x509.serialNumber`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1823,7 +1823,7 @@ The serial number of this certificate.
### `x509.subject`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1832,7 +1832,7 @@ The complete subject of this certificate.
### `x509.subjectAltName`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1841,7 +1841,7 @@ The subject alternative name specified for this certificate.
### `x509.toJSON()`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1852,7 +1852,7 @@ certificate.
### `x509.toLegacyObject()`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {Object}
@@ -1862,7 +1862,7 @@ Returns information about this certificate using the legacy
### `x509.toString()`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1871,7 +1871,7 @@ Returns the PEM-encoded certificate.
### `x509.validFrom`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1880,7 +1880,7 @@ The date/time from which this certificate is considered valid.
### `x509.validTo`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Type: {string}
@@ -1889,7 +1889,7 @@ The date/time until which this certificate is considered valid.
### `x509.verify(publicKey)`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `publicKey` {KeyObject} A public key.
@@ -3415,7 +3415,7 @@ console.log(`The dice rolled: ${n}`);
### `crypto.randomUUID([options])`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* `options` {Object}
@@ -3547,7 +3547,7 @@ console.log(key2.toString('hex')); // '3745e48...aa39b34'
### `crypto.secureHeapUsed()`
<!-- YAML
-added: REPLACEME
+added: v15.6.0
-->
* Returns: {Object}