mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 23:23:32 +01:00
Switching CAs #531
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 @kousu on GitHub (Apr 20, 2021).
Dehydrated doesn't record which CA an account was registered with, and if you switch CAs it refuses to let you re-register:
Would this be better handled by detecting the situation and warning the user that the old account needs to be manually deleted, or keeping a subdir of accounts, sorted by CA?
@txr13 commented on GitHub (Apr 20, 2021):
Dehydrated absolutely does record which CA an account was registered with. Specifically, it hashes (using base64) the CA URL and places the account files under that directory.
I've seen this in action on my own systems during migration from LE's ACMEv1 endpoint to the ACMEv2 endpoint. The same account worked during that migration, which dehydrated handled by creating a new account directory as a symlink to the old account directory, so the same account files could be reused. This, however, is special logic added for a migration, and requires setting the
OLDCAconfiguration value--if you're just changing theCAvalue, a new directory will be added for the new CA's account files.I suspect your issue is caused by an incorrect config file. Specifically, if I read the dehydrated code from the 0.6.5 release, I can see that it's only checking for files in
CONFIG_Dwhich match the pattern*.sh. Your staging file doesn't match that pattern.@kousu commented on GitHub (Apr 20, 2021):
Oh! You're totally right. Thank you for the clarification. I'm not that concerned about migrating, I'm happy to just throw out the old keys and use fresh ones.
.shwas the missing piece. Oops!