Certificate name mismatch error


#1

Hello,

My domain is: race.codebox.in

After SSL setup - Letsencrypt tells me everything was installed successfully, I get this error :

I ran this command:

sudo ./certbot-auto --apache

It produced this output:

[root@ip-172-31-4-188 ~]# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org

Which names would you like to activate HTTPS for?
-------------------------------------------------------------------------------
1: race.codebox.in
-------------------------------------------------------------------------------
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for race.codebox.in
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/httpd/conf/httpd-le-ssl.conf
Deploying Certificate to VirtualHost /etc/httpd/conf/httpd-le-ssl.conf
Enabling site /etc/httpd/conf/httpd-le-ssl.conf by adding Include to root configuration

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Redirecting vhost in /etc/httpd/conf/httpd.conf to ssl vhost in /etc/httpd/conf/httpd-le-ssl.conf

-------------------------------------------------------------------------------
Congratulations! You have successfully enabled https://race.codebox.in

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=race.codebox.in
-------------------------------------------------------------------------------

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/race.codebox.in/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/race.codebox.in/privkey.pem
   Your cert will expire on 2018-07-25. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"

My web server is (include version): Apache 2.4.6

The operating system my web server runs on is (include version): CentOS Linux release 7.2.1511 (Core)

My hosting provider, if applicable, is: Amazon AWS

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no


#2

Sounds like Apache has another certificate configured elsewhere that is taking precedence.

sudo grep -Ri sslcertificatefile /etc/httpd
sudo apachectl -S

#3

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