mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
EC keys: omit the "EC PARAMETERS" section (use ecparam -noout flag)
#538
Reference in New Issue
Block a user
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 @candlerb on GitHub (Jul 5, 2021).
When dehydrated creates an EC private key file, it looks like this:
However, the go standard libraries will not read a key with this parameters section, and therefore this affects any application written in go, such as minio.
There is more detail in this stackexchange answer. In short:
outputs the EC PARAMETERS and EC PRIVATE KEY sections, but it can be fixed by adding flag
-nooutto get just the key:I note that dehydrated uses the
-outflag to write to a file, but this works correctly when combined with-noout:Therefore, my suggestion is to add
-nooutin the two places which callopenssl ecparam.Workaround: it is possible to use a hook script to filter the key before passing it to the application, e.g.
It would be nice not to have to do that though.
@lukas2511 commented on GitHub (Oct 31, 2021):
Should be fixed now. Hopefully this doesn't break any compatibility with other software 🙈