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 /node.gyp | |
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 'node.gyp')
-rw-r--r-- | node.gyp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -143,6 +143,7 @@ 'lib/internal/crypto/sig.js', 'lib/internal/crypto/util.js', 'lib/internal/crypto/webcrypto.js', + 'lib/internal/crypto/x509.js', 'lib/internal/constants.js', 'lib/internal/dgram.js', 'lib/internal/dns/promises.js', @@ -941,6 +942,7 @@ 'src/crypto/crypto_scrypt.cc', 'src/crypto/crypto_tls.cc', 'src/crypto/crypto_aes.cc', + 'src/crypto/crypto_x509.cc', 'src/crypto/crypto_bio.h', 'src/crypto/crypto_clienthello-inl.h', 'src/crypto/crypto_dh.h', @@ -965,6 +967,7 @@ 'src/crypto/crypto_sig.h', 'src/crypto/crypto_random.h', 'src/crypto/crypto_timing.h', + 'src/crypto/crypto_x509.h', 'src/node_crypto.cc', 'src/node_crypto.h' ], |