1- Install certbot.
yum install -y certbot python3-certbot mod_ssl
2- Add Virtualenv using for port 80 in apache config file.
/etc/httpd/conf.d/zabbix.conf
add the following:
<VirtualHost *:80>
ServerName yourDomainName.com
DocumentRoot /usr/share/zabbix
ServerAlias www.yourDomainName.com
ErrorLog /var/www/error.log
CustomLog /var/www/requests.log combined
</VirtualHost>
3- Stop apache server.
service httpd stop
4- Run certbot command.
certbot --apache -d yourDomainName.com
5- Start apache server.
service httpd start