@@ -1647,7 +1647,7 @@ be passed instead of a public key.
1647
1647
1648
1648
## Class: ` X509Certificate `
1649
1649
<!-- YAML
1650
- added: REPLACEME
1650
+ added: v15.6.0
1651
1651
-->
1652
1652
1653
1653
Encapsulates an X509 certificate and provides read-only access to
@@ -1663,23 +1663,23 @@ console.log(x509.subject);
1663
1663
1664
1664
### ` new X509Certificate(buffer) `
1665
1665
<!-- YAML
1666
- added: REPLACEME
1666
+ added: v15.6.0
1667
1667
-->
1668
1668
1669
1669
* ` buffer ` {string|TypedArray|Buffer|DataView} A PEM or DER encoded
1670
1670
X509 Certificate.
1671
1671
1672
1672
### ` x509.ca `
1673
1673
<!-- YAML
1674
- added: REPLACEME
1674
+ added: v15.6.0
1675
1675
-->
1676
1676
1677
1677
* Type: {boolean} Will be ` true ` if this is a Certificate Authority (ca)
1678
1678
certificate.
1679
1679
1680
1680
### ` x509.checkEmail(email[, options]) `
1681
1681
<!-- YAML
1682
- added: REPLACEME
1682
+ added: v15.6.0
1683
1683
-->
1684
1684
1685
1685
* ` email ` {string}
@@ -1696,7 +1696,7 @@ Checks whether the certificate matches the given email address.
1696
1696
1697
1697
### ` x509.checkHost(name[, options]) `
1698
1698
<!-- YAML
1699
- added: REPLACEME
1699
+ added: v15.6.0
1700
1700
-->
1701
1701
1702
1702
* ` name ` {string}
@@ -1713,7 +1713,7 @@ Checks whether the certificate matches the given host name.
1713
1713
1714
1714
### ` x509.checkIP(ip[, options]) `
1715
1715
<!-- YAML
1716
- added: REPLACEME
1716
+ added: v15.6.0
1717
1717
-->
1718
1718
1719
1719
* ` ip ` {string}
@@ -1730,7 +1730,7 @@ Checks whether the certificate matches the given IP address (IPv4 or IPv6).
1730
1730
1731
1731
### ` x509.checkIssued(otherCert) `
1732
1732
<!-- YAML
1733
- added: REPLACEME
1733
+ added: v15.6.0
1734
1734
-->
1735
1735
1736
1736
* ` otherCert ` {X509Certificate}
@@ -1740,7 +1740,7 @@ Checks whether this certificate was issued by the given `otherCert`.
1740
1740
1741
1741
### ` x509.checkPrivateKey(privateKey) `
1742
1742
<!-- YAML
1743
- added: REPLACEME
1743
+ added: v15.6.0
1744
1744
-->
1745
1745
1746
1746
* ` privateKey ` {KeyObject} A private key.
@@ -1751,7 +1751,7 @@ the given private key.
1751
1751
1752
1752
### ` x509.fingerprint `
1753
1753
<!-- YAML
1754
- added: REPLACEME
1754
+ added: v15.6.0
1755
1755
-->
1756
1756
1757
1757
* Type: {string}
@@ -1760,7 +1760,7 @@ The SHA-1 fingerprint of this certificate.
1760
1760
1761
1761
### ` x509.fingerprint256 `
1762
1762
<!-- YAML
1763
- added: REPLACEME
1763
+ added: v15.6.0
1764
1764
-->
1765
1765
1766
1766
* Type: {string}
@@ -1769,7 +1769,7 @@ The SHA-256 fingerprint of this certificate.
1769
1769
1770
1770
### ` x509.infoAccess `
1771
1771
<!-- YAML
1772
- added: REPLACEME
1772
+ added: v15.6.0
1773
1773
-->
1774
1774
1775
1775
* Type: {string}
@@ -1778,7 +1778,7 @@ The information access content of this certificate.
1778
1778
1779
1779
### ` x509.issuer `
1780
1780
<!-- YAML
1781
- added: REPLACEME
1781
+ added: v15.6.0
1782
1782
-->
1783
1783
1784
1784
* Type: {string}
@@ -1787,7 +1787,7 @@ The issuer identification included in this certificate.
1787
1787
1788
1788
### ` x509.keyUsage `
1789
1789
<!-- YAML
1790
- added: REPLACEME
1790
+ added: v15.6.0
1791
1791
-->
1792
1792
1793
1793
* Type: {string[ ] }
@@ -1796,7 +1796,7 @@ An array detailing the key usages for this certificate.
1796
1796
1797
1797
### ` x509.publicKey `
1798
1798
<!-- YAML
1799
- added: REPLACEME
1799
+ added: v15.6.0
1800
1800
-->
1801
1801
1802
1802
* Type: {KeyObject}
@@ -1805,7 +1805,7 @@ The public key {KeyObject} for this certificate.
1805
1805
1806
1806
### ` x509.raw `
1807
1807
<!-- YAML
1808
- added: REPLACEME
1808
+ added: v15.6.0
1809
1809
-->
1810
1810
1811
1811
* Type: {Buffer}
@@ -1814,7 +1814,7 @@ A `Buffer` containing the DER encoding of this certificate.
1814
1814
1815
1815
### ` x509.serialNumber `
1816
1816
<!-- YAML
1817
- added: REPLACEME
1817
+ added: v15.6.0
1818
1818
-->
1819
1819
1820
1820
* Type: {string}
@@ -1823,7 +1823,7 @@ The serial number of this certificate.
1823
1823
1824
1824
### ` x509.subject `
1825
1825
<!-- YAML
1826
- added: REPLACEME
1826
+ added: v15.6.0
1827
1827
-->
1828
1828
1829
1829
* Type: {string}
@@ -1832,7 +1832,7 @@ The complete subject of this certificate.
1832
1832
1833
1833
### ` x509.subjectAltName `
1834
1834
<!-- YAML
1835
- added: REPLACEME
1835
+ added: v15.6.0
1836
1836
-->
1837
1837
1838
1838
* Type: {string}
@@ -1841,7 +1841,7 @@ The subject alternative name specified for this certificate.
1841
1841
1842
1842
### ` x509.toJSON() `
1843
1843
<!-- YAML
1844
- added: REPLACEME
1844
+ added: v15.6.0
1845
1845
-->
1846
1846
1847
1847
* Type: {string}
@@ -1852,7 +1852,7 @@ certificate.
1852
1852
1853
1853
### ` x509.toLegacyObject() `
1854
1854
<!-- YAML
1855
- added: REPLACEME
1855
+ added: v15.6.0
1856
1856
-->
1857
1857
1858
1858
* Type: {Object}
@@ -1862,7 +1862,7 @@ Returns information about this certificate using the legacy
1862
1862
1863
1863
### ` x509.toString() `
1864
1864
<!-- YAML
1865
- added: REPLACEME
1865
+ added: v15.6.0
1866
1866
-->
1867
1867
1868
1868
* Type: {string}
@@ -1871,7 +1871,7 @@ Returns the PEM-encoded certificate.
1871
1871
1872
1872
### ` x509.validFrom `
1873
1873
<!-- YAML
1874
- added: REPLACEME
1874
+ added: v15.6.0
1875
1875
-->
1876
1876
1877
1877
* Type: {string}
@@ -1880,7 +1880,7 @@ The date/time from which this certificate is considered valid.
1880
1880
1881
1881
### ` x509.validTo `
1882
1882
<!-- YAML
1883
- added: REPLACEME
1883
+ added: v15.6.0
1884
1884
-->
1885
1885
1886
1886
* Type: {string}
@@ -1889,7 +1889,7 @@ The date/time until which this certificate is considered valid.
1889
1889
1890
1890
### ` x509.verify(publicKey) `
1891
1891
<!-- YAML
1892
- added: REPLACEME
1892
+ added: v15.6.0
1893
1893
-->
1894
1894
1895
1895
* ` publicKey ` {KeyObject} A public key.
@@ -3415,7 +3415,7 @@ console.log(`The dice rolled: ${n}`);
3415
3415
3416
3416
### ` crypto.randomUUID([options]) `
3417
3417
<!-- YAML
3418
- added: REPLACEME
3418
+ added: v15.6.0
3419
3419
-->
3420
3420
3421
3421
* ` options ` {Object}
@@ -3547,7 +3547,7 @@ console.log(key2.toString('hex')); // '3745e48...aa39b34'
3547
3547
3548
3548
### ` crypto.secureHeapUsed() `
3549
3549
<!-- YAML
3550
- added: REPLACEME
3550
+ added: v15.6.0
3551
3551
-->
3552
3552
3553
3553
* Returns: {Object}
0 commit comments