- SSH into the server running your HTTP website as a user with sudo privileges.
- 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.
- RHEL/CentOS 7:
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- Install Certbot
Run this command on the command line on the machine to install Certbot.
sudo yum install certbot python2-certbot-nginx
- 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
Comments
Post a Comment