mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #496] Generated PFX (.p12) not working with Node v17+ due to RC2 cipher #306
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#306
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bgever on GitHub (Jan 18, 2023).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/496
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 -installmkcert -pkcs12 localhostWebpack 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: https://github.com/nodejs/node/issues/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-CBCbelow.Is it possible to generate a PFX without using RC2?
In the meantime, I'm using the PEM files approach instead.
@bgever commented on GitHub (Sep 19, 2023):
Would the solution to explicitly state the ciphers for openssl also work for mkcert internals?
See https://github.com/homebridge/homebridge-config-ui-x/issues/1428#issuecomment-1712369849