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

Discussion for guides including MAMP official & unofficial documentation. User submitted guides can be moved here by moderators.
Post Reply
mampsupportmod
Site Admin
Posts: 156
Joined: Wed Jan 20, 2021 3:06 am

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

Post 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').
MAMP Support Forums is an unofficial support forum covering MAMP & MAMP Pro solution stacks.
Post Reply