Skip to content

Commit a9d0b8d

Browse files
lpincaMoLow
authored andcommitted
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: #48192 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7250d8c commit a9d0b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-tls-dhe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function test(dhparam, keylen, expectedCipher) {
6565

6666
server.listen(0, '127.0.0.1', common.mustCall(() => {
6767
const args = ['s_client', '-connect', `127.0.0.1:${server.address().port}`,
68-
'-cipher', ciphers];
68+
'-cipher', `${ciphers}:@SECLEVEL=1`];
6969

7070
execFile(common.opensslCli, args, common.mustSucceed((stdout) => {
7171
assert(keylen === null ||

0 commit comments

Comments
 (0)