Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constructor to tls.Certificate #29343

Closed
rogierschouten opened this issue Aug 27, 2019 · 1 comment
Closed

Add constructor to tls.Certificate #29343

rogierschouten opened this issue Aug 27, 2019 · 1 comment
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.

Comments

@rogierschouten
Copy link

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

@bnoordhuis bnoordhuis added 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. labels Aug 27, 2019
@bnoordhuis
Copy link
Member

This was requested recently in #29181 so I'm going to go ahead and close this out as a duplicate of that other issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants