yum -y install mod_ssl
Disable global set:cd /etc/httpd/conf.d && mv ssl.conf conf.ssl
Test apache config:apachectl configtest
See if everything still works:systemctl restart httpd
Try dry run to obtain the certificate:certbot certonly --dry-run -a webroot -w /var/www/html -d zbx.catonrug.net
Install for real:certbot certonly -a webroot -w /var/www/html -d zbx.catonrug.net
This will generate:/etc/letsencrypt/live/zbx.catonrug.net/fullchain.pem
/etc/letsencrypt/live/zbx.catonrug.net/privkey.pem
Backup original:cd /etc/httpd/conf.d && mv zabbix.conf original.conf.zabbix
Install new config:
No comments:
Post a Comment