mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-03 22:50:02 +01:00
dehydrated issues certificate chains leading to expired root #556
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 @minfrin on GitHub (Nov 15, 2021).
Letsencrypt's root expired on 21 September:
https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
I have discovered a machine that is having letsencrypt certs be renewed, but the chain provided by dehydrated is providing the old cert chain that points at the expired cert.
Systems using old openssl (CentOS7 and below) then break in all sorts of ways.
To fix this, make sure the chain doesn't lead to an expired cert.
@jobe1986 commented on GitHub (Nov 15, 2021):
The chain is supplied by Let's Encrypt not dehydrated. dehydrated simply downloads the default chain Let's Encrypt supplies.
You can select the alternative (short) chain using
PREFERRED_CHAIN="ISRG Root X1"in your config file@AgentOak commented on GitHub (Nov 15, 2021):
This is the expected behavior as per Lets Encrypt's own documentation, and the very article you linked explains why.
@minfrin commented on GitHub (Nov 15, 2021):
Alas, no luck.
Unfortunately the error message doesn't contain quotes around the values, so it's not clear where the values start and end, or whether they include the "issuer=".
@lukas2511 commented on GitHub (Nov 16, 2021):
I'm guessing you are on the latest release-version of dehydrated? Can you please check if the latest version from master branch works for you? There already should be a fix for the CN extraction (
29b67962ac).Other than that what others already reported is correct, dehydrated doesn't generate or actively selects the chain. It uses the default chain pushed by the CA unless given instructions to use a different one.
@mnik247 commented on GitHub (Nov 30, 2021):
or try
PREFERRED_CHAIN="issuer= /C=US/O=Internet Security Research Group/CN=ISRG Root X1"
@loopiv commented on GitHub (Feb 2, 2022):
Just wanted to add another data point. On CentOS 7 (EL7) systems with dehydrated version 0.7.0 (release-version), I need to use the long version of the chain. On Oracle Linux 8 (EL8) with same dehydrated version, I need to use the short preferred chain string.
Kind of related - any chance of a new release version soon(ish)? In our environment, we usually need to use released versions. That may help with the above for consistency.
@sigprof commented on GitHub (Sep 26, 2023):
Apparently dehydrated version 0.7.1 had been released, and it fixes this problem on CentOS 7 (
PREFERRED_CHAIN="ISRG Root X1"works, while it did not with dehydrated 0.7.0); there is even a new enoughdehydrated-0.7.1-1.el7package in EPEL. So I suppose that this issue can be closed as fixed.