How to install Let’s Encrypt on Amazon Linux 2023

To Nha Notes | Feb. 19, 2024, 12:26 p.m.

  1. SSH into your Amazon EC2 instance.
  2. 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
    
  3. 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
    
  4. Once installed, you can use Certbot to obtain and manage SSL certificates for your domains.