Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--staging flag in certbot has changed to --dry-run #2

Closed
adasauce opened this issue Apr 23, 2020 · 5 comments · Fixed by #3
Closed

--staging flag in certbot has changed to --dry-run #2

adasauce opened this issue Apr 23, 2020 · 5 comments · Fixed by #3

Comments

@adasauce
Copy link

ADDITIONAL="--staging"

from: https://letsencrypt.org/docs/staging-environment/

The ACME URL for our ACME v2 staging environment is:

https://acme-staging-v02.api.letsencrypt.org/directory

If you’re using Certbot, you can use our staging environment with the --dry-run flag. 

--staging seems to just be ignored outright from certbot, no warning.

@vdhpieter
Copy link
Owner

Good catch, I'll make a patch!

@vdhpieter
Copy link
Owner

vdhpieter commented Apr 23, 2020

I dug a little bit deeper in the certbot documentation and found this:
https://github.com/certbot/certbot/blob/9d94c6c5ef8150fcd3c74319599f5106b9726c4c/certbot/docs/cli-help.txt#L22-L23
So it seems we need --test-cert but further down in the same file I found:
https://github.com/certbot/certbot/blob/9d94c6c5ef8150fcd3c74319599f5106b9726c4c/certbot/docs/cli-help.txt#L214-L218
So it seems like they still support the staging flag 🤔
They also have tests in place to test it
https://github.com/certbot/certbot/blob/9d94c6c5ef8150fcd3c74319599f5106b9726c4c/certbot/tests/cli_test.py#L287-L294
Did not run certbot code myself yet to verify because it would be a bit of a hassle

I'll keep on digging if I find something

@vdhpieter
Copy link
Owner

Ok so actually the script was completely bugged, setting the STAGING env will make it use production, not setting it will make it use staging 🤦 I'll make a patch and release it as a breaking change.

vdhpieter added a commit that referenced this issue Apr 23, 2020
vdhpieter added a commit that referenced this issue Apr 23, 2020
* Fix STAGING env to do what is expected
Fixes #2

* Fix CHICKENEGG env to do what is expected

* General code cleanup
@vdhpieter
Copy link
Owner

Released in v2.0.0! Let me know if you have any more trouble/questions!
(Docker tag is building at the moment)

@adasauce
Copy link
Author

awesome work Pieter! thanks for tracking this down.

I'll give it a shot on a fresh setup tomorrow that I'll be converting from the old kvaps one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants