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
Panic when no issuer is selected #204
Labels
bug
Something isn't working
Comments
Ah, thanks! Fixed in 2e22c6f |
That was incredibly fast - thanks @mholt! And sorry for not making a pull request, I were a bit short of time here. |
No worries. Does the patch work for you then? Just a sanity check 😅 |
Yup, works:
Note to self: Don't make excuses for not using the staging CA. |
Thanks! Will tag a release then. |
ankon
added a commit
to ankon/certmagic
that referenced
this issue
Sep 23, 2022
This merges caddyserver#204 to a similar place in config.go.
ankon
added a commit
to ankon/certmagic
that referenced
this issue
Sep 23, 2022
This merges caddyserver#204 to a similar place in config.go.
mholt
pushed a commit
that referenced
this issue
Sep 23, 2022
This merges #204 to a similar place in config.go.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of the package are you using?
v0.17.0
What are you trying to do?
Issue a certificate.
What steps did you take?
Exceed the Let's Encrypt limit of max certificates per domain and hour.
What did you expect to happen, and what actually happened instead?
I expected a clear error message that no issuer could be selected, possibly due to limits of the issuers. Instead I got a panic due to nil pointer dereference:
How do you think this should be fixed?
Add a check whether
issuerUsed
still isnil
after the loop: https://github.com/caddyserver/certmagic/blob/master/config.go#L541The text was updated successfully, but these errors were encountered: