summaryrefslogtreecommitdiff
path: root/jstests/sslSpecial/SERVER-26369.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sslSpecial/SERVER-26369.js')
-rw-r--r--jstests/sslSpecial/SERVER-26369.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/jstests/sslSpecial/SERVER-26369.js b/jstests/sslSpecial/SERVER-26369.js
index 065f646c3fc..e2852189822 100644
--- a/jstests/sslSpecial/SERVER-26369.js
+++ b/jstests/sslSpecial/SERVER-26369.js
@@ -6,15 +6,19 @@ TestData.skipCheckingUUIDsConsistentAcrossCluster = true;
load("jstests/ssl/libs/ssl_helpers.js");
- var st = new ShardingTest({shards: {rs0: {nodes: 1}}});
-
- st.rs0.restart(0, {
+ const st = new ShardingTest({shards: {rs0: {nodes: 1}}});
+ let opts = {
sslMode: "allowSSL",
- sslPEMKeyFile: "jstests/libs/password_protected.pem",
- sslPEMKeyPassword: "qwerty",
+ sslPEMKeyFile: "jstests/libs/client.pem",
sslCAFile: "jstests/libs/ca.pem",
shardsvr: ''
+ };
+ requireSSLProvider('openssl', function() {
+ // Only the OpenSSL provider supports encrypted PKCS#8
+ opts.sslPEMKeyFile = "jstests/libs/password_protected.pem";
+ opts.sslPEMKeyPassword = "qwerty";
});
+ st.rs0.restart(0, opts);
st.stop();
})();