summaryrefslogtreecommitdiff
path: root/ext/net/02_tls.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/02_tls.js')
-rw-r--r--ext/net/02_tls.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js
index 4216cbe22..b77b92e26 100644
--- a/ext/net/02_tls.js
+++ b/ext/net/02_tls.js
@@ -153,6 +153,13 @@ function loadTlsKeyPair(api, {
keyFile,
privateKey,
}) {
+ if (internals.future) {
+ certFile = undefined;
+ certChain = undefined;
+ keyFile = undefined;
+ privateKey = undefined;
+ }
+
// Check for "pem" format
if (keyFormat !== undefined && keyFormat !== "pem") {
throw new TypeError('If `keyFormat` is specified, it must be "pem"');