SSL Renewal Error PHP Fatal error: Uncaught GuzzleHttp – v4

root@ubantoServer:~# ee site ssl-renew --all
Starting SSL cert renewal
Loading current certificate for domain.com
Starting SSL verification.
PHP Fatal error:  Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: certificate has expired (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 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

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.

ee site ssl-renew domainname.com
ee site ssl-renew domainname.com --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 domainname.com

root@ubantoVPS:~# ee site ssl-renew domainname.com --force
Starting SSL cert renewal
Loading current certificate for domainname.com
Starting SSL verification.
The authorization check was successful!
Loading current certificate for domainname.com
Forced renewal.
Renewing certificate for domain domainname.com.
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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top