How to install Let’s Encrypt on Amazon Linux 2023
To Nha Notes | Feb. 19, 2024, 12:26 p.m.
- SSH into your Amazon EC2 instance.
- Add the Certbot PPA to your list of repositories. You can do this by running the following commands:
sudo dnf install -y augeas-libs
sudo python3 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install --upgrade pip
sudo /opt/certbot/bin/pip install certbot
If you want to install a specific version of Certbot, replace the last command with:
sudo /opt/certbot/bin/pip install certbot==2.6.0
- Configure Certbot according to your needs. For example, if you’re using Nginx, you can install the Nginx plugin with:
sudo /opt/certbot/bin/pip install certbot-nginx
- Once installed, you can use Certbot to obtain and manage SSL certificates for your domains.