diff options
| author | joelostrowski <jo@craftwork.dk> | 2016-04-15 16:49:36 +0200 |
|---|---|---|
| committer | Rich Trott <rtrott@gmail.com> | 2017-11-11 13:35:23 -0800 |
| commit | 6ee985f311de14621c440377f76d0391b6b23320 (patch) | |
| tree | 59f867c0c20454201dba81344aab16bff5c72a48 /lib/https.js | |
| parent | f7436ba1358f6af30d7d9baffdbef8754573f0e5 (diff) | |
| download | node-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.js | 4 |
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; |
