-
-
Notifications
You must be signed in to change notification settings - Fork 996
Closed
Labels
Description
When running the tests on latest (v1.17.3) I get:
...
124 passing (3s)
1 failing
1) session()
req.session
.cookie
.secure
should set cookie when secure:
Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
at node:internal/tls/secure-context:65:13
at Array.forEach (<anonymous>)
at setCerts (node:internal/tls/secure-context:63:3)
at configSecureContext (node:internal/tls/secure-context:152:5)
at Object.createSecureContext (node:_tls_common:117:3)
at Server.setSecureContext (node:_tls_wrap:1346:27)
at Server (node:_tls_wrap:1205:8)
at new Server (node:https:69:3)
at Object.createServer (node:https:105:10)
at Context.<anonymous> (test/session.js:2012:30)
at processImmediate (node:internal/timers:466:21)
I believe SSL libs now think 1024 bit key is too small. Regenerating 2048 bit keys in fixtures fixes the test:
openssl req -new -x509 -keyout server.key -out server.crt -newkey rsa:4096 -days 3650 -nodes -subj "/CN=express-session.local/"
I would PR with new key but probably better it project member does this.