@_az - Yes, that is the strange thing. I watched a YouTube video on how to install a LetsEncrypt certificate but it was for CentOS 7 and my server runs CentOS 6.5 so some of the commands, like systemctl do not work. I tried to install certbot with yum and it said it could not find it, I tried with Webmin and got the same message there
$ yum install -y certbot
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
- base: centos.mirror.rafal.ca
- epel: mirror.team-cymru.com
- extras: centos.mirror.rafal.ca
- updates: centos.mirror.rafal.ca
No package certbot available.
Error: Nothing to do
$ yum info certbot
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: centos.mirror.rafal.ca
- epel: mirror.team-cymru.com
- extras: centos.mirror.rafal.ca
- updates: centos.mirror.rafal.ca
Error: No matching Packages to list
I did however find a file called certbot-auto on my server and after visiting the certbot website I wound up doing what was suggested for CentOS 6.5 running Apache which is the following
$ wget https://dl.eff.org/certbot-auto
$ sudo mv certbot-auto /usr/local/bin/certbot-auto
$ sudo chown root /usr/local/bin/certbot-auto
$ sudo chmod 0755 /usr/local/bin/certbot-auto
That updated certbot-auto from 0.27.1 to 0.39.0
$ sudo /usr/local/bin/certbot-auto --apache
installed the certificate apparently without certbot
$ rpm -q certbot
package certbot is not installed
During the install of the certificate one of the questions was
Which names would you like to activate HTTPS for?
followed by a list of all the domains listed in the results of the DUMP request below.
That’s when I picked the 3 I wanted to secure, assuming it would be a multi-domain certificate, only to find that all three of them then pointed to the same website, the last one in the comma delimited list, instead of their own.
The output of the $ sudo httpd -t -D DUMP_VHOST command was as follows
[Tue Oct 08 00:21:36 2019] [warn] module ssl_module is already loaded, skipping
VirtualHost configuration:
xx.xxx.xxx.xx:80 is a NameVirtualHost
default server www.aaaaaa.com (/etc/httpd/conf/httpd.conf:1028)
port 80 namevhost www.aaaaaa.com (/etc/httpd/conf/httpd.conf:1028)
alias aaaaaa.com
alias www.aaaaaa.ca
alias aaaaaa.ca
port 80 namevhost www.bbbbbb.com (/etc/httpd/conf/httpd.conf:1037)
alias bbbbbb.com
alias www.bbbbbb.ca
alias bbbbbb.ca
port 80 namevhost www.cccccc.info (/etc/httpd/conf/httpd.conf:1046)
alias cccccc.info
port 80 namevhost www.dddddd.info (/etc/httpd/conf/httpd.conf:1061)
alias dddddd.info
alias www.eeeeee.info
alias eeeeee.info
alias www.ffffff.info
alias ffffff.info
port 80 namevhost www.gggggg.ca (/etc/httpd/conf/httpd.conf:1073)
alias gggggg.ca
port 80 namevhost www.hhhhhh.ca (/etc/httpd/conf/httpd.conf:1084)
alias hhhhhh.ca
port 80 namevhost www.kkkkkk.com (/etc/httpd/conf/httpd.conf:1093)
alias kkkkkk.com
alias www.LLLLLL.ca
alias LLLLLL.ca
alias www.mmmmmm.eu
alias mmmmmmm.eu
port 80 namevhost www.nnnnnn.com (/etc/httpd/conf/httpd.conf:1102)
alias nnnnnn.com
port 80 namevhost www.oooooo.com (/etc/httpd/conf/httpd.conf:1111)
alias oooooo.com
port 80 namevhost www.ppppppp.ca (/etc/httpd/conf/httpd.conf:1120)
alias pppppp.ca
wildcard NameVirtualHosts and default servers:
default:443 xx.xxx.xxx.xx (/etc/httpd/conf.d/ssl.conf:74)
Syntax OK
Not sure what that information reveals. To me it is just a list of the domain names in the < VirtualHost > statements of httpd.conf and ssl.conf files. Perhaps it will mean more to you.
Rather confused about what is going on and where to go from here. And that is not even addressing possible problems running a cron job to automatically renew the certificates since all the samples I see use certbot for that.
Thanks for the help and patience with this from you both so far.