sentry-self-hosted icon indicating copy to clipboard operation
sentry-self-hosted copied to clipboard

Does it make sense to uninstall letsencrypt certbot?

Open alexeyzimarev opened this issue 5 years ago • 5 comments

LetsEntrypt certificate expire after a short while, does it make sense to remove the certbot or maybe it's a better idea to keep it and set up a cron job to run every now and then to renew the certificate?

alexeyzimarev avatar Jul 03 '19 06:07 alexeyzimarev

Yes, I'd set up a cron job to renew the certificate. Say, once a month. I think you can use the following script:

git clone https://github.com/letsencrypt/letsencrypt
sudo service nginx stop || true
letsencrypt/letsencrypt-auto --standalone --non-interactive --email [email protected] --agree-tos auth -d YOUR_SENTRY_DOMAIN
sudo service nginx start || true
rm -rf letsencrypt

mherrmann avatar Jul 03 '19 06:07 mherrmann

Thanks @mherrmann!

liamaharon avatar Aug 10 '19 07:08 liamaharon

Happy it helps others :-)

mherrmann avatar Aug 10 '19 07:08 mherrmann

Could the script set up this cron job so it's all automatic?

jeff-h avatar Apr 01 '20 04:04 jeff-h

Sure @jeff-h. If you figure it out, please submit a PR. (I don't have time to look at this.)

mherrmann avatar Apr 01 '20 05:04 mherrmann