SSL Renewal Error PHP Fatal error: Uncaught GuzzleHttp


#1

Hi Guys I am experiencing ths SSL renewal error on Ubuntu 18 - Latest ee version.

Any clues on what may be causing this?

root@vps645553:~# sudo ee site ssl-renew www.site.com
Starting SSL cert renewal
Loading current certificate for www.site.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
Warning: An Error occurred. Initiating clean-up.
Warning: Exiting gracefully after rolling back. This may take some time.
Success: Rollback complete. Exiting now.


#2

Hello,

Just rename the cert file for your domain from: /opt/easyengine/services/nginx-proxy/certs to something new and rerun: ee site ssl-renew

Thanks,
Dragos
site: https://www.wpdoze.com/


SSL Renew Problem
SSL doesnt update
#3

Thank you so much. This solution. Super helpful for what was a major time consuming problem.


#4

Does not work.


#5

I have 2 sites unavailable now. Incredible.


#6

This comment worked for me on some domains.

Hello,

Just rename the cert file for your domain from: /opt/easyengine/services/nginx-proxy/certs to something new and rerun: ee site ssl-renew

Thanks,
Dragos
site: https://www.wpdoze.com/

Others I had to migrate.


#7

After renaming a file, and back… I can’t access those websites at all.
I restarted the server (restarted sites and services), cleaned cache, nothing… no access.
Might go back to serverpilot.

502 Bad Gateway

Had to reboot the server (ubuntu)… I got the access back. SSL renew still give errors. ffs

This is the biggest issue for normal functioning. Btw my certs never ever renewed themselves. Not even on v3.


#8

Just rename the cert file for your domain from: /opt/easyengine/services/nginx-proxy/certs to something new and rerun: ee site ssl-renew

Solution works here. Thank you, @wpdoze


#9

Thank you wpdoze for your solution. it really helpful for me.


#10

This worked for me also, thank you. However, should I run this command now as the cronjob cmd to renew ssl? The docs are so wack for 3 vs 4 rn…


#11

That problem only happens if the SSL has expired.
If you have this line below on your crontab it should be fine:

0 12 * * * ee site ssl-renew --all 2> /dev/null # Renew letsencrypt SSL cert. Set by EasyEngine V4

SSL doesnt update
#12

Yea, I only run 1 day a week for this will do the trick! sudo su && crontab -e and jam that in there.