-
Notifications
You must be signed in to change notification settings - Fork 7.3k
TLS Peer certificate exponent listed as "10001" #17202
Comments
@iamthechad What is the problem with using this specific representation? |
There's no problem per se. It's just inconsistent with tools that show the decimal value by default. (Although, if I can't tell binary and hex apart I have worse issues. Admittedly, other tools show it as |
@iamthechad I agree it is definitely confusing, and some clearer output would be beneficial. @joyent/node-coreteam I wonder if that would be considered an API change. Even though the API documentation doesn't mention the exponent, some users could be relying on its format to parse I would suggest considering it's an API change and submitting a PR against master to have both the decimal and hexadecimal forms of the exponent displayed, or at least to prefix the hexadecimal form with Thoughts? |
This is certainly would be a breaking change. What do you think about just documenting it? |
Documenting in v0.10/v0.12 and making it clearer by changing the output in v0.13 sounds good to me. |
Ok, makes sense :) |
@iamthechad Do you have some time to make the changes as described in my previous comment? |
I'd be happy to take a stab at it. Where should I make the changes - against the |
@iamthechad For the documentation changes, that would be against v0.10. For the code changes, that would be against master. Thank you 👍 |
I've submitted doc changes. Are you also asking if I could make the code changes? I can certainly take a stab at it. Is there any documentation around for setting up a dev environment for Node? I'd love to be able to load things into a decent IDE so I can at least navigate easier. |
@iamthechad If you're interested in making the code changes, of course that would be great too! Make sure you read the README.md file and the CONTRIBUTING.md file too. There isn't any instruction on how to build node with specific IDEs yet as far as I know. If you have any question, some of the node contributors are in the #libuv IRC channel on the Freenode servers. |
@iamthechad ... if IDE's are your thing, eclipse has fairly good node/js editing support and you can configure it to use the config/makefile build. It's a bit... "heavyweight"... tho. |
I'm available to guide anyone willing to pick this issue up and submit a PR that changes the output to make it clearer as mentioned in #17202 (comment). Ping me on GitHub by mentioning @misterdjules or find me on IRC (jgi in #libuv on Freenode). |
@misterdjules I'd be more than happy to pick this up. I've successfully submitted a doc change against 0.12, so I have a better understanding of the expected PR format, but it would definitely be nice to have a guide. |
@iamthechad Excellent! If you have any question, please join #libuv on Freenode (IRC) and ping me (I'm jgi in that channel). |
@iamthechad I'm also available by email at jgilli at fastmail dot fm. |
Closing, as code/behavior changes landed in node v4.0.0 and later with nodejs/node@847459c, and documentation changes for v0.10 and v0.12 are tracked with #25142. Thank you again @iamthechad! |
The exponent should probably be stored in the peer certificate object as the number
65537
instead of the binary10001
(unless there's a reason for the binary representation).The text was updated successfully, but these errors were encountered: