summaryrefslogtreecommitdiff
path: root/test/simple/test-https-client-get-url.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/simple/test-https-client-get-url.js')
-rw-r--r--test/simple/test-https-client-get-url.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/simple/test-https-client-get-url.js b/test/simple/test-https-client-get-url.js
index c6ddb032d..ae5613c14 100644
--- a/test/simple/test-https-client-get-url.js
+++ b/test/simple/test-https-client-get-url.js
@@ -24,6 +24,9 @@ if (!process.versions.openssl) {
process.exit(0);
}
+// disable strict server certificate validation by the client
+process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
+
var common = require('../common');
var assert = require('assert');
var https = require('https');