Skip to content

Commit a6b6f29

Browse files
author
Tony Kovanen
committed
Add rest of the ssl related options supported by ws and https.request.
1 parent 918c00e commit a6b6f29

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/XMLHttpRequest.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,13 @@ function XMLHttpRequest(opts) {
386386
};
387387

388388
if (ssl) {
389+
options.pfx = opts.pfx;
389390
options.key = opts.key;
391+
options.passphrase = opts.passphrase;
390392
options.cert = opts.cert;
391393
options.ca = opts.ca;
394+
options.ciphers = opts.ciphers;
395+
options.rejectUnauthorized = opts.rejectUnauthorized;
392396
}
393397

394398
// Reset error flag
@@ -428,9 +432,13 @@ function XMLHttpRequest(opts) {
428432
};
429433

430434
if (ssl) {
431-
newOptions.key = opts.key;
432-
newOptions.cert = opts.cert;
433-
newOptions.ca = opts.ca;
435+
options.pfx = opts.pfx;
436+
options.key = opts.key;
437+
options.passphrase = opts.passphrase;
438+
options.cert = opts.cert;
439+
options.ca = opts.ca;
440+
options.ciphers = opts.ciphers;
441+
options.rejectUnauthorized = opts.rejectUnauthorized;
434442
}
435443

436444
// Issue the new request

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy