Skip to content

Commit

Permalink
test: use lower security level in s_client
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lpinca authored and danielleadams committed Jul 6, 2023
1 parent 37921dc commit 8512e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-tls-dhe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 8512e64

Please sign in to comment.