Received 2 certificate(s), first certificate had names

Please fill out the fields below so we can help you better.

My domain is:

(This is the one I selected during the setup. I have several domain name running on the server. Incl the Domain which is mentioned underneath .

I ran this command:
certbot --apache

It produced this output:
Type: unauthorized
Detail: Incorrect validation certificate for TLS-SNI-01 challenge.
from Received 2 certificate(s), first
certificate had names “*,

To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.

My operating system is (include version):
Linux version 3.2.0-4-amd64 ( (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.81-2

My web server is (include version):
Server version: Apache/2.4.10 (Debian)
Server built: Sep 15 2016 20:44:43

My hosting provider, if applicable, is:
I have a VPS. But domain name is redirected from the hosing compagnie. “

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

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

I receive the above error. And I have an redirect.
I got some A records. e.g. @ A 617 and IP
www A 617 and IP

I hope someone can help me out how to use letsEncrypt in combination with a DNS from an other company. Unfortunately I could not find a answer. Incl the use of DNS challenge :frowning:

You have a VPS but also have a “redirect”? What do you mean with “redirect”?


  • has the IP address and gives a “404 File Not Found” error;
  • has the IP address and redirects to

What does have to do with this all?

Hello Osiris,

First, thanks for you swift reply.
When I run certbot --apache, I receive a list with multiple domain names. I can make a selection by moving the arrow key and I selected

So that’s why I wrote the

I registred a couple of domain names at . Incl the name listed above. At I use the DNS option to “Redirect” these name towards my VPS on I hope I explained it a little bit.


Well, actually, you selected all the domains. With the space bar, you can toggle the * before the hostnames. I.e., you can switch between [*] (= selected) and [ ] (= not selected).

Anyway, I think with "redirect" you mean something like "point at", I hope. Because there are also services which are advertised as a redirect service: you type in '' in the browser and the browser will connect to the hosting provider. The hosting provider will provide a very short HTML page with an "iframe" in the page, which has the source pointed to the intended website. As you can read, such a service is quite cumbersome and such a service will not work properly with Let's Encrypt.
On the other hand, if you use "redirect" like: "I went to the control panel of my DNS provider and I typed in the IP address of my VPS after a specific hostname", you should be fine.

Still, the IP addresses for and differ: are they supposed to point to the same IP address, i.e., your VPS server? I'm guessing the IP address behind ( is the correct one, because I can see a Let's Encrypt certificate behind it:

osiris@desktop ~ $ echo "" | openssl s_client -connect 2>/dev/null | openssl x509 -noout -text | grep -A 1 "Subject Alternative Name"
            X509v3 Subject Alternative Name: 
osiris@desktop ~ $ 

So the reason why doesn't work: it is pointing to the wrong IP address.

1 Like

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