Page 1 of 1

MAMP: Let's Encrypt Auto Renew SSL Crontab Job - Mac OS X

Posted: Wed Jan 20, 2021 3:34 am
by mampsupportmod
If you use Let's Encrypt SSL certificates for MAMP, you can create a crontab to automatically check your domains for SSL renewals. Below, we create a crontab that will check at 1:15am each morning.

1. Open Terminal.

2. Type

Code: Select all

sudo crontab -e

3. Hit "i" and then type

Code: Select all

15 1 * * * /usr/local/bin/certbot renew --quiet

4. Type

Code: Select all

:wq
to save the crontab job.


Some users are reporting that even though this job will automatically check for SSL renewal updates each day, you need to manually restart APACHE if a new SSL is renewed in order to apply the latest SSL certificate to your website host (if you are mapping SSL's using the LIVE alias').