From 004baf8c202cb31b2a7aebbab5a6052c780b2082 Mon Sep 17 00:00:00 2001 From: Dan Beglin Date: Fri, 17 May 2019 23:17:19 +0100 Subject: [PATCH] doc: corrected tlsSocket.getPeerCertificate response type Within tls.md, the documentation for the response of tlsSocket.getPeerCertificate() included subjectaltname documented as an array of values. However these values are actually returned as a single string of concatenated values. The documentation has been updated to reflect this. Fixes: https://github.com/nodejs/node/issues/27721 --- doc/api/tls.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index 867681d1d2a626..364dd42fdf6895 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -917,8 +917,8 @@ certificate. It is returned as a `:` separated hexadecimal string. Example: `'2A:7A:C2:DD:...'`. * `ext_key_usage` {Array} (Optional) The extended key usage, a set of OIDs. -* `subjectaltname` {Array} (Optional) An array of names for the subject, an - alternative to the `subject` names. +* `subjectaltname` {string} (Optional) A string containing concatenated names + for the subject, an alternative to the `subject` names. * `infoAccess` {Array} (Optional) An array describing the AuthorityInfoAccess, used with OCSP. * `issuerCertificate` {Object} (Optional) The issuer certificate object. For