Common name is

/opt/letsencrypt/letsencrypt-auto --version
letsencrypt 0.8.1

on centos 7

common name is but my site is

browser says: NET::ERR_CERT_AUTHORITY_INVALID says: Certificate name mismatch

heres the command I used: /opt/letsencrypt/letsencrypt-auto --apache -d -d

And your question is… what exactly?

Besides, you’re giving us extremely few information to work with… Can’t help you, sorry…

i thought that was pretty thorough :blush:

I thought it might be a bug related to

What’s your domain name ? (I’ll be removing the name from here later)

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 ?

Just did this:

to change the hostname permanently, you need to change it in two places:

vi /etc/sysconfig/network
and: a good idea if you have any applications that need to resolve the IP of the hostname)

vi /etc/hosts newHostName 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 -d command again?

Why would you do that?

If the Apache configuration still isn’t sound, it should not matter what the hostname of your VPS is…

cause for some reason they still said the hostname was


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…

And you did, per that tutorial, create a new “Virtual Host for your Domain”?

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)


thanks guys

In the future, you might want to mention the use of panels such as Sentora.

i will (did not think it was related)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.