On both PROD and DEV machines, we have certbot installed. By default, certbot has its cronjob which renews the certificates twice a day every 24 hours, but the problem is that they are stored in the/etc/letsencrypt/live/domain folder as fullchain.pem and privkey.pem filles.
The cron job should run every 89 days (this is when the original cert in the /data/certs folder expires) and copy fullchain.pem, privkey.pem, and move them to data/certs folder with names devenv.crt and devenv.key respectively.
@asynchroza feedback on this solution is appreciated.
Brief description:
On both PROD and DEV machines, we have certbot installed. By default, certbot has its cronjob which renews the certificates twice a day every 24 hours, but the problem is that they are stored in the
/etc/letsencrypt/live/domain
folder asfullchain.pem
andprivkey.pem
filles.The cron job should run every 89 days (this is when the original cert in the
/data/certs
folder expires) and copyfullchain.pem
,privkey.pem
, and move them todata/certs
folder with namesdevenv.crt
anddevenv.key
respectively.@asynchroza feedback on this solution is appreciated.