summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shardingtest.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/shardingtest.js')
-rw-r--r--src/mongo/shell/shardingtest.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js
index b77131ab170..2e39ec890e0 100644
--- a/src/mongo/shell/shardingtest.js
+++ b/src/mongo/shell/shardingtest.js
@@ -781,7 +781,8 @@ var ShardingTest = function(params) {
const x509AuthRequired = (conn.fullOptions && conn.fullOptions.clusterAuthMode &&
conn.fullOptions.clusterAuthMode === "x509" &&
- currNode.fullOptions.sslMode === "requireSSL");
+ (currNode.fullOptions.sslMode === "requireSSL" ||
+ currNode.fullOptions.tlsMode === "requireTLS"));
if (keyFileUsed) {
authutil.asCluster(currNode, keyFileUsed, () => {