{"action":"opened","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/27721","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/27721/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/27721/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/27721/events","html_url":"https://github.com/nodejs/node/issues/27721","id":444635296,"node_id":"MDU6SXNzdWU0NDQ2MzUyOTY=","number":27721,"title":"API docs: type for TLS Certificate's `subjectaltname` field is wrong.","user":{"login":"cakoose","id":239989,"node_id":"MDQ6VXNlcjIzOTk4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/239989?v=4","gravatar_id":"","url":"https://api.github.com/users/cakoose","html_url":"https://github.com/cakoose","followers_url":"https://api.github.com/users/cakoose/followers","following_url":"https://api.github.com/users/cakoose/following{/other_user}","gists_url":"https://api.github.com/users/cakoose/gists{/gist_id}","starred_url":"https://api.github.com/users/cakoose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakoose/subscriptions","organizations_url":"https://api.github.com/users/cakoose/orgs","repos_url":"https://api.github.com/users/cakoose/repos","events_url":"https://api.github.com/users/cakoose/events{/privacy}","received_events_url":"https://api.github.com/users/cakoose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-05-15T20:40:41Z","updated_at":"2019-05-15T20:40:41Z","closed_at":null,"author_association":"NONE","body":"API doc URL: https://nodejs.org/api/tls.html#tls_certificate_object\r\n\r\nThe API doc says ([link](https://nodejs.org/api/tls.html#tls_certificate_object)):\r\n> - `subjectaltname` &lt;Array&gt; (Optional) An array of names for the subject, an alternative to the subject names.\r\n\r\nBut there's an example below those docs that says it's a string, not an array:\r\n\r\n```\r\nsubjectaltname: 'DNS:*.nodejs.org, DNS:nodejs.org',\r\n```\r\n\r\nWhen I use `TlsSocket.getPeerCertificate()` myself, I also get a string."}}
{"actor":{"display_login":"cakoose"}}