Skip to content

Instantly share code, notes, and snippets.

@vadirajks
Created April 15, 2024 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadirajks/de1c5693ca314828891c6e206116c0bf to your computer and use it in GitHub Desktop.
Save vadirajks/de1c5693ca314828891c6e206116c0bf to your computer and use it in GitHub Desktop.
certbot_install.sh
sudo yum install epel-release
sudo yum install certbot-nginx
#if it is not working, follow the below steps:
sudo python3 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install --upgrade pip
sudo /opt/certbot/bin/pip install certbot certbot-nginx
sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot
sudo certbot --nginx
sudo systemctl reload nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment