From 2e0ed0bd699c7a2675fac19ef2463bf44e39a49a Mon Sep 17 00:00:00 2001 From: Chad Johnston Date: Wed, 6 May 2015 19:43:12 -0600 Subject: [PATCH 1/2] Clarify exponent encoding Refs #17202 --- doc/api/tls.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index 49b37106e278..2449bafcbc77 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -618,10 +618,14 @@ Example: O: 'node.js', OU: 'Test TLS Certificate', CN: 'localhost' }, + modulus: '...hex representation of modulus...', + exponent: '10001', 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. From 391df6f306ea74e49064ff0c2d2341eca1d86d26 Mon Sep 17 00:00:00 2001 From: Chad Johnston Date: Thu, 7 May 2015 08:27:24 -0600 Subject: [PATCH 2/2] Move exponent comment inline Clarify that exponent is a hex value. Refs #17202 --- doc/api/tls.markdown | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index 2449bafcbc77..744c35e577d0 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -619,13 +619,11 @@ Example: OU: 'Test TLS Certificate', CN: 'localhost' }, modulus: '...hex representation of modulus...', - exponent: '10001', + 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.