mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Handling of CA account private keys #36
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 @danb35 on GitHub (Jan 18, 2016).
I'm seeing a bit of an issue with the handling of account private keys when switching from one CA to another. The process goes something like this:
The user can, of course, delete or rename the private_key.pem file, and then the script will run fine. I'd suggest, though, one of two ways of handling this in the script:
I think (1) is the better option of the two, but either would avoid this.
@lukas2511 commented on GitHub (Jan 18, 2016):
yea... i know... i kinda hate changing paths now, as it has been like this for quite some time... but i guess something has to be done...
@nneul commented on GitHub (Jan 22, 2016):
Why not go hybrid
Use the private key as provided - but if there isn't one already present in $BASEDIR/accounts/$CA_HOSTNAME/private_key.pem - copy the base one to it after attempting registration.
@qaxi commented on GitHub (May 12, 2016):
Changing paths ... it can really be painful.
It opens way to other CAs but it's "big" change.
On the other hand, how many CAs you know to support this kind of cert handling ...
My idea is: add --testCA parameter
It has two positives
If you like it, will do it and then send you pull request to let you see if it's OK for you.
@phloggu commented on GitHub (May 21, 2016):
If you don't want to change path, set up softlinks instead.
@michielbdejong commented on GitHub (Jun 1, 2016):
Would it be an idea to store the key in
./private_key-$HASH_OF_CA_URL.pemand then usels private_key*.pemto see which private keys are available?@michielbdejong commented on GitHub (Jun 1, 2016):
Or another option: add the CA URL into
private_key.json, and give a meaningful error message when a mismatch is detected.