How to Install and Configure SSL and TLS in Centos
Installation SSL TLS Certified in Centos 8
Here I am using ZeroSSL certificate
Need to verify domain and add CNAME associate with your domain
Default and can add Ports- vi /etc/httpd/conf/httpd.conf
Need to import 3 files in ssl
certificate.crt
private.key
ca_bundle.crt
SSLCertificateFile /etc/ssl/certificate.crt
SSLCertificateKeyFile /etc/ssl/private.key
SSLCertificateChainFile /etc/ssl/ca_bundle.crt
Before Starting SSL Libraries confirm Linux Version

if we are using sub domain need to use the below mention code till
Hostname:
_d4b2d6c9300000c9a1fughdggdh412f2.own.querypanel.com
and
alias to need to use complete all.
Alias to:
44b4a194e9df6691b88f994b0d08d7c0.50b9903cb69dd8dbjkO9b2a7232ee000.308f4bcc9b4f3c0.comodoca.com
23b53f6e0f766435190ea099b6114199.web — till sub domain start name
so,
if we are using only validating domain name need to use code till number
23b53f6e0f766435190ea099b6114199
because if we are using domain only need to hostname will be number number no need to sub domain


[root@hq ~]# dnf install epel-release
yum or dnf can use

[root@hq ~]# dnf install epel-release
Last metadata expiration check: 2:09:48 ago on Mon 20 Dec 2021 01:04:03 PM +04.
Package epel-release-8-8.el8.noarch is already installed.
Dependencies resolved.
===============================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================
Upgrading:
epel-release noarch 8-13.el8 epel 23 k
Transaction Summary
===============================================================================================================================================
Upgrade 1 Package
[root@hq ~]# dnf install mod_ssl

[root@hq ~]# dnf install mod_ssl
Last metadata expiration check: 2:11:05 ago on Mon 20 Dec 2021 01:04:03 PM +04.
Dependencies resolved.
===============================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================
Installing:
mod_ssl x86_64 1:2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 136 k
Upgrading:
[root@hq ~]# systemctl restart httpd

[root@hq ~]# systemctl status httpd

[root@hq ~]# vi /etc/httpd/conf.d/ssl.conf
If we need port running with domain need to change the default port replace with it or your port
<VirtualHost *:443 *:8070>





