mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
Config option to resign existing public key #254
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 @madduck on GitHub (Sep 18, 2017).
With
--cron, dehydrated creates a new keypair which it then signs, while--signcsrgives access to functionality that requests a new certificate for the existing keypair. This has the benefit that the public key ID/fingerprint does not change. However,--signcsris really more of an ad-hoc method, while--cronis really handy to be run regularly.Would it be possible to introduce a new config option (which should also be configurable per-domain) which causes dehydrated to preserve the keypair and CSR and simply request a new certificate, optionally revoking any existing ones?
@dkg commented on GitHub (Sep 18, 2017):
I understand why you want to preserve the secret key. Is there a reason that you care about preserving the CSR specifically? seems like issuing a new CSR with the secret key should also be acceptable for your goals. Given that there are (iirc) timestamps in the CSR, issuing a new CSR seems better if there are ACME servers that test the incoming CSR for "freshness"
@lukas2511 commented on GitHub (Sep 18, 2017):
You can disable
PRIVATE_KEY_RENEWto keep the key.There is also key rollover support, I'd suggest taking a look at using that for pubkey pinning.
@madduck commented on GitHub (Sep 18, 2017):
The setting @lukas2511 mentioned does the trick. I was of course grepping for PUB… sorry!
And @dkg: no, no need to keep the CSR, except I saw
--signcsr.