SSL Renewal Error PHP Fatal error: Uncaught GuzzleHttp – v4

I was using easyengine v4 for one of my websites. As Easyengine v4 comes with lots of inbuilt features. It has auto-renewal of SSL certificate. But one fine day my Website domain SSL was showing as expired. As it was failed to auto-renewal. Once I try to renew it manually using below command.

					root@ubantoServer:~# ee site ssl-renew --all
Starting SSL cert renewal
Loading current certificate for
Starting SSL verification.
PHP Fatal error:  Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: certificate has expired (see in phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186
Stack trace:
#0 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): Guz in phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186				
					ee site ssl-renew
ee site ssl-renew --force
ee site ssl-renew --all				

But hard luck 🙁 nothing was working. So Thought of taking complete website backup and then recreating it. But it was a long process. As I did some more research on above GuzzleHttp Error and thought of regenerating new certificate for my website.

So For generating New certificate have to remove/rename the old certificate of your domain and ran the easyengine SSL command again.

You can find the certificate files of your domain name at location: /opt/easyengine/services/nginx-proxy/certs . For adding new certificate we have to rerun easyengine command: ee site ssl-renew

					root@ubantoVPS:~# ee site ssl-renew --force
Starting SSL cert renewal
Loading current certificate for
Starting SSL verification.
The authorization check was successful!
Loading current certificate for
Forced renewal.
Renewing certificate for domain
Certificate received
Certificate stored
Certificate renewed successfully!
Success: SSL verification completed.
Starting site's services.
Success: SSL renewal completed.				

So finally without moving my site and taking backup my domain certificate renewal done successfully.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top