Skip to content

crypto: expose OpenSSL's x.509 API #2492

@silverwind

Description

@silverwind

To generate self-signed x.509 certificates and private keys from within an application, modules like pem have to rely on spawning the system's OpenSSL, which is problematic as it can be out of date or worse, not available at all (Windows).

I think it would make sense to expose the following APIs from the bundled OpenSSL through crypto:

  • generate a private key
  • generate a self-signed certificate
  • generate dh parameters

Accompaning the above, I could also see the following:

  • read a private key's size
  • read certificate fields
  • read dh parameters's key size

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.feature requestIssues that request new features to be added to Node.js.opensslIssues and PRs related to the OpenSSL dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions