You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webpack is unable to serve with the following error:
> webpack serve --color --mode development
<i> [webpack-dev-server] SSL certificate: /Users/bart/myapp/node_modules/.cache/webpack-dev-server/server.pem
[webpack-cli] Error: unsupported
at configSecureContext (node:internal/tls/secure-context:277:15)
at Object.createSecureContext (node:_tls_common:117:3)
at Server.setSecureContext (node:_tls_wrap:1352:27)
at Server (node:_tls_wrap:1211:8)
at new Server (node:https:74:3)
at Object.createServer (node:https:112:10)
at Server.createServer (/Users/bart/myapp/node_modules/webpack-dev-server/lib/Server.js:2443:57)
at Server.initialize (/Users/bart/myapp/node_modules/webpack-dev-server/lib/Server.js:1820:10)
at Server.start (/Users/bart/myapp/node_modules/webpack-dev-server/lib/Server.js:3251:16)
at async Command.<anonymous> (/Users/bart/myapp/node_modules/@webpack-cli/serve/lib/index.js:159:21)
Searching for the problem led me to this Node.js bug report: nodejs/node#40672
It mentions that RC2 cipher has been disabled since Node 17. The suggested command to list the PFX details confirms the use of the RC2 cipher, see pbeWithSHA1And40BitRC2-CBC below.
$ openssl pkcs12 -info -in localhost.p12 -noout
Enter Import Password:
MAC Iteration 1
MAC verified OK
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
Certificate bag
PKCS7 Data
Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048
Is it possible to generate a PFX without using RC2?
In the meantime, I'm using the PEM files approach instead.
The text was updated successfully, but these errors were encountered:
Environment
mkcert -version
): v1.4.4What you did
I'm using the webpack dev server, and prefer to use the PFX method as it only creates a single file on the filesystem.
mkcert -install
mkcert -pkcs12 localhost
Webpack config:
What went wrong
Webpack is unable to serve with the following error:
Searching for the problem led me to this Node.js bug report: nodejs/node#40672
It mentions that RC2 cipher has been disabled since Node 17. The suggested command to list the PFX details confirms the use of the RC2 cipher, see
pbeWithSHA1And40BitRC2-CBC
below.Is it possible to generate a PFX without using RC2?
In the meantime, I'm using the PEM files approach instead.
The text was updated successfully, but these errors were encountered: