Skip to content

Instantly share code, notes, and snippets.

@Khalidalansi
Khalidalansi / setup-certbot-script.sh
Created October 22, 2022 21:03 — forked from stevenvandervalk/setup-certbot-script.sh
A bash script to install certbot and add crontab to renew the cert
#!/bin/bash
#
# This sets up Let's Encrypt SSL certificates and automatic renewal
# using certbot: https://certbot.eff.org
#
# - Run this script as root.
# - A webserver must be up and running.
#
# Certificate files are placed into subdirectories under
# /etc/letsencrypt/live/*.