Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Clarify exponent encoding #25142

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/api/tls.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,14 @@ Example:
O: 'node.js',
OU: 'Test TLS Certificate',
CN: 'localhost' },
modulus: '...hex representation of modulus...',
exponent: '10001',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline comment would be more clear:

exponent: '10001', // 0x10001

valid_from: 'Nov 11 09:52:22 2009 GMT',
valid_to: 'Nov 6 09:52:22 2029 GMT',
fingerprint: '2A:7A:C2:DD:E5:F9:CC:53:72:35:99:7A:02:5A:71:38:52:EC:8A:DF' }

**Note:** The `exponent` property is a hexadecimal value.

If the peer does not provide a certificate, it returns `null` or an empty
object.

Expand Down