summaryrefslogtreecommitdiff
path: root/lib/https.js
diff options
context:
space:
mode:
authorjoelostrowski <jo@craftwork.dk>2016-04-15 16:49:36 +0200
committerRich Trott <rtrott@gmail.com>2017-11-11 13:35:23 -0800
commit6ee985f311de14621c440377f76d0391b6b23320 (patch)
tree59f867c0c20454201dba81344aab16bff5c72a48 /lib/https.js
parentf7436ba1358f6af30d7d9baffdbef8754573f0e5 (diff)
downloadnode-new-6ee985f311de14621c440377f76d0391b6b23320.tar.gz
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.
Diffstat (limited to 'lib/https.js')
-rw-r--r--lib/https.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/https.js b/lib/https.js
index f6e5a533b9..5013791fe2 100644
--- a/lib/https.js
+++ b/lib/https.js
@@ -161,6 +161,10 @@ Agent.prototype.getName = function getName(options) {
name += options.cert;
name += ':';
+ if (options.clientCertEngine)
+ name += options.clientCertEngine;
+
+ name += ':';
if (options.ciphers)
name += options.ciphers;