gmpassos / shelf_letsencrypt

Let's Encrypt support for the shelf package (free and automatic HTTPS certificate support).
Apache License 2.0
8 stars 3 forks source link

switching between staging and production fails. #11

Open bsutton opened 10 months ago

bsutton commented 10 months ago

When testing a acme client I always start with a staging cert to avoid the letsencrypt rate limiter.

Once I know everything is working I then switch to the production cert.

The problem is that lets encrypt fails to obtain the production certificate because it tries to use the existing staging account under the /etc/letsencrypt/live directory.

The cause for the failure is non-obvious.

I think we should look to have separate paths for the production and staging account.

Perhaps:

/etc/letsencrypt/live/staging /etc/letsencrypt/live/production

This would make testing easier as a dev an move between staging and production certs without worrying about cleaning up the old accounts.