Skip to content

Define certificate creation facilities #51169

Closed

Description

@danfuzz

What is the problem this feature will solve?

Right now, there is a gap in the crypto package in that, while one can parse existing certificates (e.g., new X509Certificate(...)), there's no exposed built-in functionality (that I could find) to create new certificates with specified properties.

This feature will close that gap.

What is the feature you are proposing to solve the problem?

Add new classes and/or methods to node:crypto, so that one can create a signed certificate from its various parts, along with a signing key, CSR, etc.

What alternatives have you considered?

I am currently using the npm package pem for this, which is a thin wrapper around call-outs to the openssl binary (which it assumes is available in the environment).

The npm packagenode-forge seems to have the right functionality and is JS-native, though it is unclear how well-maintained it is.

Activity

  1. added
    feature request
    on Dec 15, 2023
  2. added
    crypto
    on Dec 16, 2023
  3. mcollina commented on Jan 8, 2024

    @mcollina
    SponsorMember

    I think this would be a great addition to Node.js to simplify the adoption of https even on developer machines.

  4. github-actions commented on Jul 7, 2024

    @github-actions
    Contributor

    There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-stale Issues and PRs exempt from automated stale handling. label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
    For more information on how the project manages feature requests, please consult the feature request management document.

  5. added
    stale
    on Jul 7, 2024
  6. added
    never-stale
    and removed
    stale
    on Jul 8, 2024
  7. moved this from Awaiting Triage to In Progress in Node.js feature requestson Aug 31, 2026
  8. self-assigned this
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cryptofeature requestnever-stale

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions