From 909dc046d6577277a9e0598a736e7fcc7658e17f Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 29 May 2023 21:23:40 +0200 Subject: [PATCH] test: use lower security level in s_client With the default security level (SECLEVEL=2), the following error ``` 40E72B52DB7F0000:error:0A00018A:SSL routines:tls_process_ske_dhe:dh key too small:../deps/openssl/openssl/ssl/statem/statem_clnt.c:2100 ``` is raised on on Ubuntu 22.04 on WSL2. PR-URL: https://github.com/nodejs/node/pull/48192 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- test/parallel/test-tls-dhe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-tls-dhe.js b/test/parallel/test-tls-dhe.js index a5cdc2d35ecbb7..46779b09ff6b8f 100644 --- a/test/parallel/test-tls-dhe.js +++ b/test/parallel/test-tls-dhe.js @@ -65,7 +65,7 @@ function test(dhparam, keylen, expectedCipher) { server.listen(0, '127.0.0.1', common.mustCall(() => { const args = ['s_client', '-connect', `127.0.0.1:${server.address().port}`, - '-cipher', ciphers]; + '-cipher', `${ciphers}:@SECLEVEL=1`]; execFile(common.opensslCli, args, common.mustSucceed((stdout) => { assert(keylen === null ||