Unifi easy encrypt glennr certificate renewal

Hi,

I installed the following script Glenn R. a few months ago, i am using dns challenge (cloudflare api).

That part is working perfectly but i was under the impression that it would automatically renew itself and that seems not the case.

So i was wondering i someone is using this and know how to make the renewel automatically happen.

Do i need to create a cron for it using crontab -e and what should u put in there? Exactly the same line that i was using to register the cert.

that was somenthing like

unifi-easy-encrypt.sh -skip --fqdn unifi.demo.com --email info@demo.com --dns-challenge --dns-provider-credentials /cloudflare/cloudflaredemo.inite code here

Just ran into this. I’m using unifi-easy-encrypt.sh with Let’s Encrypt.

Use cron to schedule:

unifi-easy-encrypt.sh --skip --email "jdoe@contoso.com" --fqdn "unifi.contoso.com.com"

Where jdoe@contoso.com is your notification email, and unifi.contoso.com is the FQDN of the controller.

Reading the script, it will renew the certs if they are less than 30 days from expiration. The certs come with 90 days’ lifetime.
You can use --force-renew to force renewal regardless of the age of the current certs.