Skip to content

Proposed extension to https.request to allow using a custom OpenSSL client certificate engine. #6145

@joelostrowski

Description

@joelostrowski
  • Version: 6.0.0
  • Platform: All
  • Subsystem: HTTPS

I am lacking a way to access the SSL_CTX_set_client_cert_engine function in OpenSSL when doing https requests. I think this functionality would be useful to others which is why I am posting here as a feature request?

Perhaps the interface could look something like this:

var options =
{
    host: 'www.host.com',
    port: 443,
    method: 'GET',
    path: '/sensitive/data.action',
    clientCertEngine: 'credsmgr',       // my custom SSL client certificate engine
    agent: false,
    headers: {}
};
https.request(options, function(c) {/*etc*/});

It shouldn't be a big thing to incorporate - I can provide a patch if needed? Obviously there would need to be some kind of consensus on the extension... is "clientCertEngine" the right name for instance?

Thanks in advance for the consideration!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.opensslIssues and PRs related to the OpenSSL dependency.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