mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
tls: implement clientCertEngine option
Add an option 'clientCertEngine' to `tls.createSecureContext()` which gets wired up to OpenSSL function `SSL_CTX_set_client_cert_engine`. The option is passed through from `https.request()` as well. This allows using a custom OpenSSL engine to provide the client certificate.
This commit is contained in:
committed by
Rich Trott
parent
f7436ba135
commit
6ee985f311
@@ -160,6 +160,10 @@ Agent.prototype.getName = function getName(options) {
|
||||
if (options.cert)
|
||||
name += options.cert;
|
||||
|
||||
name += ':';
|
||||
if (options.clientCertEngine)
|
||||
name += options.clientCertEngine;
|
||||
|
||||
name += ':';
|
||||
if (options.ciphers)
|
||||
name += options.ciphers;
|
||||
|
||||
Reference in New Issue
Block a user