Problem to get a certificate for a non www domain


#1

I can’t get a certificate for non-www domain, certbot is only getting for www domain.

The domain is:
jceos.com
I ran this command:
certbot --apache -d jceos.com -d www.jceos.com

It produced this output:
Failed authorization procedure. jceos.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://jceos.com/.well-known/acme-challenge/sHqdFd_QPKNqpXkTBJFhO2wqipYoAyD2UcPyGW3HMis: "<body style=“padding:0; margin:0;”><iframe src=“http://mcc.godaddy.com

My web server is (include version):
Apache/2.4.29 (Ubuntu)

The operating system my web server runs on is (include version):
Ubuntu 18.04.1 LTS (Bionic Beaver)

My hosting provider, if applicable, is:
The domain was registered in godaddy
My VPS is in locaweb

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

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


#2

Hi @lipesmile

there are different ip addresses:

Your non-www has two addresses:

D:\temp>nslookup jceos.com.
Name: jceos.com
Addresses: 184.168.221.39
191.252.201.58

But your www has only one.

D:\temp>nslookup www.jceos.com.
Name: vps9835.publiccloud.com.br
Address: 191.252.201.58
Aliases: www.jceos.com

So try to remove the non-www 184.168.221.39 address.