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

Handle case where the returned auth is already valid #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

petercooperjr
Copy link

At least for Buypass, if one already has previously validated an authorization on that ACME account for a requested domain name, the initial status when created is "valid". However, the code was trying to submit the challenge for validation anyway, causing the server to return status:400 Unable to process challenge, authorization is not pending. So, if the initial status is valid, it should just proceed directly rather than trying to process the challenge again.
I'm not sure if this is exactly the best way to write this, but it seems to work for me on both Let's Encrypt and Buypass.

At least for Buypass, if one already has previously validated an authorization on that ACME account for a requested domain name, the initial status when created is "valid". However, the code was trying to submit the challenge for validation anyway, causing the server to return "status:400 Unable to process challenge, authorization is not pending". So, if the initial status is valid, it should just proceed rather than trying to process the challenge again.
I'm not sure if this is exactly the best way to write this, but it seems to work for me on both Let's Encrypt and Buypass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant