summaryrefslogtreecommitdiff
path: root/src/mongo/shell/servers_misc.js
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2013-10-11 14:16:10 -0400
committerAndreas Nilsson <andreas.nilsson@10gen.com>2013-10-11 17:14:20 -0400
commit8cd3c95861417614dfac3a8cbf9f6c7621d40e93 (patch)
treec22475da48ba17e6e0361e4056adb74515785e56 /src/mongo/shell/servers_misc.js
parent71dbf90bfb81c036e3dd345bb1b5e6d2a798ad9b (diff)
downloadmongo-8cd3c95861417614dfac3a8cbf9f6c7621d40e93.tar.gz
SERVER-7455 Improvements to the use-x509 and use-ssl passthroughs
Diffstat (limited to 'src/mongo/shell/servers_misc.js')
-rw-r--r--src/mongo/shell/servers_misc.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/mongo/shell/servers_misc.js b/src/mongo/shell/servers_misc.js
index d661228c766..60dd2cb3763 100644
--- a/src/mongo/shell/servers_misc.js
+++ b/src/mongo/shell/servers_misc.js
@@ -164,15 +164,21 @@ ReplTest.prototype.getOptions = function( master , extra , putBinaryFirst, norep
}
if( jsTestOptions().useSSL ) {
- a.push( "--sslMode" )
- a.push( "sslOnly" )
- a.push( "--sslPEMKeyFile" )
- a.push( "jstests/libs/server.pem" )
- a.push( "--sslCAFile" )
- a.push( "jstests/libs/ca.pem" )
+ if (!a.contains("--sslMode")) {
+ a.push( "--sslMode" )
+ a.push( "sslOnly" )
+ }
+ if (!a.contains("--sslPEMKeyFile")) {
+ a.push( "--sslPEMKeyFile" )
+ a.push( "jstests/libs/server.pem" )
+ }
+ if (!a.contains("--sslCAFile")) {
+ a.push( "--sslCAFile" )
+ a.push( "jstests/libs/ca.pem" )
+ }
a.push( "--sslWeakCertificateValidation" )
}
- if( jsTestOptions().useX509 ) {
+ if( jsTestOptions().useX509 && !a.contains("--clusterAuthMode")) {
a.push( "--clusterAuthMode" )
a.push( "x509" )
}