Skip to content

API docs: type for TLS Certificate's subjectaltname field is wrong. #27721

Closed
@cakoose

Description

@cakoose

The API doc says it's an array (link):

  • subjectaltname <Array> (Optional) An array of names for the subject, an alternative to the subject names.

But there's an example below those docs that shows a string:

subjectaltname: 'DNS:*.nodejs.org, DNS:nodejs.org',

When I use TlsSocket.getPeerCertificate() myself, I get a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions