yourivw / LEClient

An easy-to-use PHP ACME v2 client library, designed to be used with LetsEncrypt.
MIT License
204 stars 98 forks source link

HTTP 429 - To Many Request #83

Open HMAZonderland opened 4 years ago

HMAZonderland commented 4 years ago

Feature request: see how many request can be made or if there is a cooling down period active. I use this library to power a CMS and request SSL certificates for the sites running this CMS. From time to time a lot of certificates need to be requested and I get a response from the API HTTP/1.1 429 Too Many Requests indicating this is too much.

Would be nice to be able to see before running a bulk of renewals if there are any requests left.

yourivw commented 4 years ago

The rate limits implied by LetsEncrypt are shown here: https://letsencrypt.org/docs/rate-limits/

I think this is the problem you're running into. As far as I know it's not possible by code to check how many requests you can still make. I would suggest you create a monitor on your CMS that keeps track of your requests and compares it with shown limits. Personally, I do not have any spare time at this moment to work on this project or expand it unfortunately.