SSL Renewal Error PHP Fatal error: Uncaught GuzzleHttp

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/

7 Likes

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

Does not work.

I have 2 sites unavailable now. Incredible.

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.

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.

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

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

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…

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
2 Likes

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

Hi guys, I`m having this major problem in my SSL certificate.
This solution do not work for me.

I put a heart on there…you saved me from a headache!

How can i login to phymyadmin after installing wordpress?

I have the same problem. SSL renewal doesn’t work anymore.
We need hotfix for EE4.

You have to install the easyengine toolset called Admin Tools. You install it via command line.

How I can do that?

awesome :slight_smile: it works like charm,

– I just had to rename - domain crt inside the /opt/easyengine/services/nginx-proxy/certs folder
mv domain.com.crt domain.com.crt1
then -
ee site ssl-renew --all

After I renamed my CRT file, I get a new error:

PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 51: SSL: no alternative certificate subject name matches target host name ‘my.domain’ (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186

Any help on that would be appreciated.

I used to have renewal problems too. What did I do?

  1. Switch to the root user

su -

  1. Go to

cd /etc/letsencrypt/renewal

  1. Long list files

ls

  1. Use cat command or another one to view the contents of this specific file:

cat mydomain.com.conf

  1. Search the section [[webroot_map]] at the end of the file. If missing add it this way (using nano command or another for editing the file):

[[webroot_map]]

mydomain.com = /var/www/mydomain.com/public_html

www.mydomain.com = /var/www/mydomain.com/public_html

That should solve renew issues with letsencrypt.

1 Like