I need help when I try to install certbot on my apache server with centos 7, when executing this code: yum install certbot certbot-apache mod_ssl -y
I get an error and I don’t know why it is installed.
Finished Dependency Resolution
Error: Package: python2-certbot-apache-1.0.0-1.el7.noarch (epel)
Requires: mod_ssl
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
You cannot install the Certbot Apache plugin on it.
cPanel takes over the packaging for your server, so mod_ssl comes as a part of EasyApache4 (in a differently named package = ea-apache24-mod_ssl).
In general, you should not use Certbot on cPanel at all. cPanel manages its Apache configuration in a very special way, that Certbot is not aware of. certbot --apachewill screw up your cPanel server - and any changes performed by Certbot will be reverted anyway by cPanel.
You should just use cPanel AutoSSL - https://blog.cpanel.com/autossl/ . It automatically installs certificates for you without having to mess around with any extra software or plugins.