summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2016-11-08 17:06:17 -0500
committerSpencer Jackson <spencer.jackson@mongodb.com>2016-11-08 17:06:17 -0500
commit3220495083b0d678578a76591f54ee1d7a5ec5df (patch)
tree4d94972b3fda0a574450661cb0280d6c399ca105 /jstests
parent1c2c402147d3e6fea734ffd16784cdb1e82da91d (diff)
downloadmongo-3220495083b0d678578a76591f54ee1d7a5ec5df.tar.gz
SERVER-26369: Fix shard server crash with encrypted PEMKeyFiles
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sslSpecial/SERVER-26369.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/jstests/sslSpecial/SERVER-26369.js b/jstests/sslSpecial/SERVER-26369.js
new file mode 100644
index 00000000000..96dd0d15183
--- /dev/null
+++ b/jstests/sslSpecial/SERVER-26369.js
@@ -0,0 +1,19 @@
+'use strict';
+(function() {
+ load("jstests/ssl/libs/ssl_helpers.js");
+
+ var st = new ShardingTest({
+ shards: {rs0: {nodes: 1}},
+ mongos: 1,
+ });
+
+ st.rs0.restart(0, {
+ sslMode: "allowSSL",
+ sslPEMKeyFile: "jstests/libs/password_protected.pem",
+ sslPEMKeyPassword: "qwerty",
+ sslCAFile: "jstests/libs/ca.pem",
+ shardsvr: ''
+ });
+
+ st.stop();
+})();