How to renew ssl through crontab

hi, i want to autorenew all the domains in droplet which have easyengine software. command which i used is @monthly ee site update --le=renew --all 2> /dev/null # Renew all letsencrypt SSL cert.$

This is not working for me.

Why monthly?

I run my --le=renew jobs every day, and it is totally fine.

what is the command to run letsencrypt autorenewals exact working one.

Because i am getting Expiry mails before 20 days. not renewing

ee site update --all --le=renew

Can you give exact cron command

You already have the exact command,

@monthly ee site update --le=renew --all 2> /dev/null # Renew all letsencrypt SSL cert.$

But you can use it manually if your certificate wasn’t renewed

Instead of @monthly I’d rather use @daily.

i used 0 12 * * * but it is not working.

Try putting sudo before ee in crontab and see if it helps

1 Like

Unfortunately, I’m out of suggestions for you, if it is not working so far.

i used @daily followed by sudo it worked fine for me.

@monthly sudo ee site update --le=renew --all 2> /dev/null # Renew all letsencrypt SSL cert.$ @daily sudo ee site update --le=renew --all 2> /dev/null # Renew all letsencrypt SSL cert.$