Created
July 25, 2021 10:26
-
-
Save imhuytq/a689f7bc3b4f33e972ecc89eef7caf20 to your computer and use it in GitHub Desktop.
Install certbot CentOS/RHEL 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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