Open halkyon opened 5 years ago
I has considered your suggestion, but there are some difficulties. 50x error may be caused by LE server self, or may be caused by params error of client requests. I have to find a way to find the difference between them.
Not to use guzzle because I this it's too heavy for this simple project, but guzzle is still an excellent package.
In some cases, HTTP responses from Let's Encrypt have returned a 50x during Let's Encrypt downtime, or a rate limit was hit. This client should probably handle these gracefully. I would also suggest using Guzzle instead of curl, which allows greater flexibility in handling HTTP requests from PHP, such as adding a retry middleware.
From the Let's Encrypt docs here: https://letsencrypt.org/docs/integration-guide/