MENU CLOSE
  • Home
  • Blog
  • Get in touch

Hi, I am George

Hi, I am George

  • Home
  • Blog
  • Get in touch

Cronjob for Auto SSL renewal on EasyEngine v4

ON 11.03.2020 4 COMMENTS

EasyEngine v4 is packed in a Docker container and it does not create cronjob for automatic renewal of your SSL certificates.

They have also slightly changed the command for the SSL creation in ee v4.

First, update to the current version of EE

ee cli update

Then you need to create the cronjob at the host.

sudo ee cron create host --command=‘ee site ssl-renew --all’ --schedule=’@weekly’

This should do the trick.

However, if your certificate expires, the ee site ssl-renew /on/off commands will no longer work.

It could throw this error as well: SSL Renewal Error PHP Fatal error: Uncaught GuzzleHttp

What you need to do is to rename the certificates for the domain name at /opt/easyengine/services/nginx-proxy/certs

cd /opt/easyengine/services/nginx-proxy/certs

to find all the names of the certificates.

tip: renaming in linux is simply mv old.filename new.filename

Then run

ee site ssl-renew yoursite.com

and it should work.

PREV Conor McGregor net worth in 2020 - how much and how the Notorious has made it.
NEXT My Conor McGregor dupe SEO experiemnt

4 Responses

  1. Hi, may I know when will the SSL being renew? is it 1 day ahead before the certificate expires?

    Chan 3 years ago Reply
    • It depends on the certificate. With LetsEncrypt I think you can renew it if there are 30 days or less left until the expiry date. You can set up a cron job on the server to automate this.

      George G 3 years ago Reply
      • I’ve added the cron job, but it doesn’t work even though it only lefts few days to expire. Is it because of the EE version? Currently my EE version is 4.0.14.

        Chan 3 years ago Reply
  2. I was trying to renew using the cronjob command but here is the error showing up
    Error: Too many positional arguments: site ssl-renew
    Can you help me out how to proceed to create a cronjob?

    Rishi Bharadwaj 2 years ago Reply

Leave a Comment Cancel Reply

  • Recent Posts

    • Защо избрах хостинг в Jump?
    • Fonts not working on XAMPP (localhost) on Firefox [Solution]
    • Migrating EasyEngine 3.8 to WordOps
    • Solve “Error establishing a database connection” of WordPress on a VPS (EasyEngine v4)
    • My Conor McGregor dupe SEO experiemnt
  • Archives

    • May 2021
    • January 2021
    • June 2020
    • May 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2018
    • August 2018
    • July 2018
    • May 2018
  • Categories

    • SEO