How to create https with certbot on Centos7 - Nginx

  1. SSH into the server running your HTTP website as a user with sudo privileges.
  2. Enable EPEL repo You'll need to enable the EPEL (Extra Packages for Enterprise Linux) repository and make sure you follow all instructions for your system, including enabling any other recommended repositories that may be required. 
  3. RHEL/CentOS 7:
    # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  4.  Install Certbot Run this command on the command line on the machine to install Certbot.
    sudo yum install certbot python2-certbot-nginx
      
  5. Choose how you'd like to run Certbot Either get and install your certificates...
    Run this command to get a certificate and have Certbot edit your Nginx configuration automatically to serve it, turning on HTTPS access in a single step
    sudo certbot --nginx -d domain.com -d domain.com
referensi : https://certbot.eff.org/lets-encrypt/centosrhel7-nginx

Comments