It looks as if you have obtained 4 certificates over the last couple of days - but none of them are the one you are using in youe current apache config
Have you installed it in your apache, and reloaded apache ?
to change the hostname permanently, you need to change it in two places:
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=newHostName
and: a good idea if you have any applications that need to resolve the IP of the hostname)
vi /etc/hosts
127.0.0.1 newHostName
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
and then
rebooting the system
should I try the /opt/letsencrypt/letsencrypt-auto --apache -d example.com -d www.example.comcommand again?
That’s because Apache is configured as such so it will provide some sort of self-signed certificate with that common name. What you really would like to do, is find out why your Apache isn’t providing the right certificate. (As @serverco tries to point you to).
Normally, certbot configures your Apache configuration for you, but perhaps something went wrong. So you should check the Apache configuration if it properly defines a VirtualHost section with the right ServerName/ServerAlias directive.
/etc/httpd/httpd.conf ServerName and ServerAlias are commented out as per this tutorials instructions
Open the file /etc/httpd/conf/httpd.conf and search for the directives ServerName and ServerAlias. If they are set to the same domain you configured as a virtual host, you should comment them out by adding a # sign at the beginning of the line....
yeah i did follow all the steps! My friend just helped me (he logged into sentora panel and did a bunch of stuff to the dns settings then he ran the letsencrypt auto again and its working now)