summaryrefslogtreecommitdiff
path: root/jstests/ssl/ssl_crl_revoked.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-03-22 12:08:42 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-04-06 18:19:21 -0400
commit7baac52f05a3e0cbdb7168e51836f507eda99dff (patch)
tree0bec9669a362aabd5d8b5cbcdcba4f9418c42509 /jstests/ssl/ssl_crl_revoked.js
parent9b278765717f4645f1469b389338d3ec055c3316 (diff)
downloadmongo-7baac52f05a3e0cbdb7168e51836f507eda99dff.tar.gz
SERVER-17450 Cleanup SSL test infrastructure
Diffstat (limited to 'jstests/ssl/ssl_crl_revoked.js')
-rw-r--r--jstests/ssl/ssl_crl_revoked.js16
1 files changed, 5 insertions, 11 deletions
diff --git a/jstests/ssl/ssl_crl_revoked.js b/jstests/ssl/ssl_crl_revoked.js
index 53d6671f4f4..97ab29bf46e 100644
--- a/jstests/ssl/ssl_crl_revoked.js
+++ b/jstests/ssl/ssl_crl_revoked.js
@@ -2,18 +2,12 @@
// Note: crl_client_revoked.pem is a CRL with the client.pem certificate listed as revoked.
// This test should test that the user cannot connect with client.pem certificate.
-port = allocatePorts( 1 )[ 0 ];
-var baseName = "jstests_ssl_ssl_crl_revoked";
+var md = MongoRunner.runMongod({sslMode: "requireSSL",
+ sslPEMKeyFile: "jstests/libs/server.pem",
+ sslCAFile: "jstests/libs/ca.pem",
+ sslCRLFile: "jstests/libs/crl_client_revoked.pem"});
-
-var md = startMongod( "--port", port, "--dbpath", MongoRunner.dataPath + baseName,
- "--sslMode","requireSSL",
- "--sslPEMKeyFile", "jstests/libs/server.pem",
- "--sslCAFile", "jstests/libs/ca.pem",
- "--sslCRLFile", "jstests/libs/crl_client_revoked.pem");
-
-
-var mongo = runMongoProgram("mongo", "--port", port, "--ssl", "--sslAllowInvalidCertificates",
+var mongo = runMongoProgram("mongo", "--port", md.port, "--ssl", "--sslAllowInvalidCertificates",
"--sslPEMKeyFile", "jstests/libs/client_revoked.pem",
"--eval", ";");