Letsencrypt — easy way

Now you can install certbot-nginx and it will do everything for you.

sudo yum install certbot-nginx

And then

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

If it does not work, try this sudo certbot -d example.com -d www.example.com and then select nginx in a prompt.

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-centos-7

LEAVE A COMMENT