Repository navigation
openssl list-public-key-algorithms on crypto docs聽#9005
Description
Activity
- addedcryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.
on Oct 10, 2016 cc @nodejs/crypto
Perhaps we should just add a
crypto.getPubKeyAlgos()or similar.I see
openssl list-public-key-algorithmsmentioned forcrypto.createSign()andcrypto.createVerify()but I have no idea why. What you want to use is one of the digests fromcrypto.getHashes(), like RSA-SHA256.Reacted by YagoYeah, it is basically contained in
crypto.getHashes()as @bnoordhuis pointed out.Looks like the documentation has basically always been wrong -- I traced it back to commit afce4c3 from May 2010, released in v0.1.94! In fairness, we didn't have
crypto.getHashes()back then. :-)Nor did anyone know how these things work ;)
Reacted by Gibson Fahnestock- addedgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Oct 10, 2016 Sounds like we're somewhat overdue a documentation update then?
Yep.
Would like to make a PR for this, from what I understand from the thread I need to:
- Remove
openssl list-public-key-algorithmsexplanation fromcrypto.createSign()andcrypto.createVerify()sections in the docs. - Update the
crypto.getHashes()to be more clear about listing supported hash algorithms?
Can have a PR open for this shortly!
cc @bnoordhuis
Thanks!
Reacted by Gibson Fahnestock- Remove
@sstern6 Correct. I'd also cross-reference
crypto.getHashes()fromcrypto.createSign()andcrypto.createVerify().Reacted by Scott Stern@bnoordhuis ON IT! Will have a PR open today! Thank you
Closing, fixed in 3d294cf.
According with docs
openssl list-public-key-algorithmsshows the available signing algorithms, but isn't very helpfull, in fact I'm still unable to figure out which parameter to pass tocrypto.createVerify(algorithm)馃槩By the way, on openssl 1.1.0b does not exists that command: