summaryrefslogtreecommitdiff
path: root/jstests/sslSpecial
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2018-02-20 12:39:37 -0500
committerSara Golemon <sara.golemon@mongodb.com>2018-03-17 12:45:29 -0400
commit65191bbe5c00bb419a7466fb7db43e220035f776 (patch)
tree1f2c00082b35eafbcdaa1539ed680ac84949a640 /jstests/sslSpecial
parent9eea82ee2a0e37da90cbb549d55c5eac8aa69a55 (diff)
downloadmongo-65191bbe5c00bb419a7466fb7db43e220035f776.tar.gz
SERVER-22412 Implement a secure transport ASIO backend
Diffstat (limited to 'jstests/sslSpecial')
-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();
})();