-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Feature request: Support create public key from components method? #24471
Comments
@nodejs/crypto |
This came up in a discussion around the key object API recently. Currently, the only way to do this is to manually create an SPKI structure. That might change in the future, though. |
@tniessen Can you clarify? I assume you're not talking about openssl's There's It might get a bit awkward if we also want to support EC keys through the same API because they're quite different from RSA and DSA keys, and because there's some overlap with the ( On the other hand, DSA and RSA keys have well-defined formats. It's not hard to write a npm module that takes some BigInts and spits out PEM. There's no real reason it should live in core except convenience. |
Sorry, Ben, I must have missed the notitfication.
I meant this, where PEM would encode a SubjectPublicKeyInfo (SPKI) structure:
I think this discussion should be aligned with the more recent comments in #15113 regarding JWK support. JWK recommends support for EC, by the way. |
@belldoor Is there anyway to do this now ? |
@jainendra You can use https://www.npmjs.com/package/bursar (I wrote it a while ago in response to this issue but I forgot to publish it... Done just now.) Some examples here: https://github.com/bnoordhuis/node-bursar/blob/9447b188b9f424a72dac5a318a1ffe6596057822/test.js#L30-L85 |
@tniessen sounds great! |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment. For more information on how the project manages feature requests, please consult the feature request management document. |
I cannot use
ursa
anymore at node v10. So I'm trying to move to native crypto.But the problem is, native crypto seems not support create public key from components.
So, why don't you support create public key from components method?
The text was updated successfully, but these errors were encountered: