How to renew ssl through crontab


#1

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.


#2

Why monthly?

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


#3

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

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


#4

ee site update --all --le=renew


#5

Can you give exact cron command


#6

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


#7

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


#8

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


#9

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


#10

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


#11

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.$


#12