GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `Crypto` API documentation for `x509.keyUsage` is wrong for all versions · Issue #48727 · nodejs/node

Crypto API documentation for x509.keyUsage is wrong for all versions #48727

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Crypto API documentation for x509.keyUsage is wrong for all versions#48727
Copy link
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.

Description

@jeffsec-aws
jeffsec-aws
opened on Jul 10, 2023
Issue body actions

Affected URL(s)

https://nodejs.org/api/crypto.html#x509keyusage

Description of the problem

The page for x509.keyUsage indicates that it returns An array detailing the key usages for this certificate. while in fact it only returns the extended key usage for the certificate. For example:

  • 1.3.6.1.5.5.7.3.1 for TLS Web server
  • or 1.3.6.1.5.5.7.3.2 for TLS Web client

Key usages (not extend) are completely different are related to certificate extension under OID 2.5.29.15 to contain value in a bit array format.

Key usage can have for definition: Digital signature, Non-repudiation, Key encipherment, Data encipherment, Key agreement, Certificate signing, CRL signing, Encipher only, Decipher only.

Therefore the API should be x509.extKeyUsage and the definition An array detailing the key extended usages for this certificate. to match the reality of the function.

Reacted by Mert Can Altin and Daniel Meechan

Activity

  1. jeffsec-aws
    added
    docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.
    on Jul 10, 2023
  2. VoltrexKeyva
    added
    cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.
    on Jul 12, 2023
  3. nodejs-github-bot
    added a commit that references this issue on Nov 20, 2023

    doc: update Crypto API doc for x509.keyUsage

    a9a4778
  4. targos
    added a commit that references this issue on Nov 23, 2023

    doc: update Crypto API doc for x509.keyUsage

    5ba6e7f
  5. lucshi
    added a commit that references this issue on Nov 27, 2023

    doc: update Crypto API doc for x509.keyUsage

    8eafec3
  6. RafaelGSS
    added 2 commits that reference this issue on Nov 29, 2023

    doc: update Crypto API doc for x509.keyUsage

    8468daf
  7. UlisesGascon
    added a commit that references this issue on Dec 11, 2023

    doc: update Crypto API doc for x509.keyUsage

    3eb9e4e
  8. UlisesGascon
    added a commit that references this issue on Dec 19, 2023

    doc: update Crypto API doc for x509.keyUsage

    e22ce95
  9. github-actions commented on May 30, 2026

    @github-actions
    github-actionsBot
    on May 30, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  10. github-actions
    added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on May 30, 2026
  11. github-actions commented on Jun 29, 2026

    @github-actions
    github-actionsBot
    on Jun 29, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
    If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.

  12. github-actions
    closed this as not plannedon Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.