How to install Let’s Encrypt SSL on CentOS 7 with Nginx 4 years ago Nayan Prajapati 1 minute Step 1 – Installing the Certbot Install CentOS 7 EPEL repository # yum install epel-release Install all of the required packages # yum install certbot-nginx Step 2 – Obtaining a Certificate Obtain a certificate that covers only a single domain # certbot --nginx -d domain.com Obtain a single certificate that covers multiple domains or subdomains # certbot --nginx -d domain.com -d domain2.com# certbot --nginx -d domain.com -d www.domain.com Step 3 – Setting Up Auto RenewalEdit the crontab to create a new job that will run the renewal twice per day. To edit the crontab for the root user# crontab -eEnter insert mode by pressing i and add in the following line:* */12 * * * /usr/bin/certbot renew >/dev/null 2>&1Now, press Esc to leave insert mode, then :wq and ENTER to save and exit the file.