yum install -y epel-release wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto
./certbot-auto --apache --domain=example.com,www.example.com certonly
./certbot-auto --nginx --domain=www.example.com,example.com certonly
SSLEngine on ErrorLog logs/example.com-error_log CustomLog logs/example.com-access_log common SSLOptions +StrictRequire SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
0 0 1 * * /root/certbot-auto renew --quiet