Add constructor to tls.Certificate #29343
Labels
crypto
Issues and PRs related to the crypto subsystem.
duplicate
Issues and PRs that are duplicates of other issues or PRs.
feature request
Issues that request new features to be added to Node.js.
Is your feature request related to a problem? Please describe.
I would like to parse an x509 certificate to be able to show its fingerprint to the user. Most NPM packages that parse certificates have failing npm install on Windows due to build issues w.r.t. different versions of OpenSSL.
Describe the solution you'd like
The node TLS module already has a Certificate interface that contains everything I need. I just need it to be a class so that I can also load a given certificate string into it instead of just getting this interface from the TLS connection.
It would seem that the node implementation already has certificate parsing available internally.
Describe alternatives you've considered
NPM packages x509 (doesn't build), x509.js (contains crypto library in github repo), x509-ts (un-finished), various forks of x509
The text was updated successfully, but these errors were encountered: