Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To install Let's Encrypt on Amazon Linux2023, follow the steps below:

  1. Update the package list using the following command:

    sudo yum update

  2. Install the Certbot client using the following command:

    sudo yum install certbot python2-certbot-apache

  3. Run the Certbot client specifying the domain name(s) for which you would like to get a certificate. For example, if you want to obtain a certificate for a domain called "example.com" and its subdomains, run the following command:

    sudo certbot --apache -d example.com -d www.example.com

  4. Follow the on-screen instructions to complete the process. After confirming that you agree to the terms of service, Certbot will automatically generate and install the SSL certificate.

  5. To test that the certificate is properly installed, access your website using HTTPS. You should see a green padlock icon in the address bar, indicating that the connection is secure.

Note: If you have an Amazon Linux 2 instance, you may need to enable the Extra Packages for Enterprise Linux (EPEL) repository to install Certbot. You can do this by running the following command:

sudo amazon-linux-extras install epel

Then, proceed with step 2 above.