summaryrefslogtreecommitdiff
path: root/jstests/ssl/dh_params.js
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-08-14 14:15:52 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2017-08-14 15:35:22 -0400
commit476e861748510449511eb0a9a250a03cff8c07e6 (patch)
tree3015dd2d39c4c47e2de31c07573c9dd05dbc757a /jstests/ssl/dh_params.js
parent58b36b8bbc6ca7159e100ada6dc15852af0a8661 (diff)
downloadmongo-476e861748510449511eb0a9a250a03cff8c07e6.tar.gz
SERVER-24897 Configuration of DHE parameters.
Added an option to permit specifying a Diffie Hellman parameters file in PEM format which will be passed to OpenSSL. We also now indicate to OpenSSL that we'd like Elliptic Curve Diffie Hellman Exchange, if the client supports it.
Diffstat (limited to 'jstests/ssl/dh_params.js')
-rw-r--r--jstests/ssl/dh_params.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/ssl/dh_params.js b/jstests/ssl/dh_params.js
new file mode 100644
index 00000000000..2da7867aff9
--- /dev/null
+++ b/jstests/ssl/dh_params.js
@@ -0,0 +1,9 @@
+(function() {
+ "use strict";
+
+ load("jstests/ssl/libs/ssl_helpers.js");
+
+ // Verify that requireSSL with Diffie-Hellman parameters allows ssl connections
+ print("=== Testing that DHParams files can be loaded ===");
+ replShouldSucceed("dhparam-dhparam", dhparamSSL, dhparamSSL);
+}());