Installing the Certbot Let’s Encrypt Client for NGINX on Amazon Linux 2
Installing the Certbot Let’s Encrypt Client The certbot package is not available through the package manager by default. You will need to enable the EPEL repository to install Certbot. sudo yum install epel-release sudo yum install certbot-nginx Set Up NGINX certbot can automatically configure NGINX for SSL/TLS. It looks for and modifies the server block in your NGINX configuration that contains a server_name directive with the domain name you’re requesting a certificate for. In our example, the domain is www.mydomain.com . Assuming you’re starting with a fresh NGINX install, use a text editor to create a file in the /etc/nginx/conf.d directory named domain_name.conf (so in our example, www.mydomain.com.conf). Specify your domain name (and variants, if any) with the server_name directive: server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; server_name myd...
Comments
Post a Comment