Skip to content

Instantly share code, notes, and snippets.

@imhuytq
Created July 25, 2021 10:26
Show Gist options
  • Save imhuytq/a689f7bc3b4f33e972ecc89eef7caf20 to your computer and use it in GitHub Desktop.
Save imhuytq/a689f7bc3b4f33e972ecc89eef7caf20 to your computer and use it in GitHub Desktop.
Install certbot CentOS/RHEL 7
# Install
sudo yum install -y epel-release
sudo yum install -y snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Add cert
sudo certbot --nginx
# Check auto renew
sudo certbot renew --dry-run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment