Error expand certificate wildcard

Hi good afternoon everyone,
I am experiencing the following problem:
I generated the wildcard certificate with the following command:

certbot certonly --manual --preferred-challenges dns-01 --email --server --agree-tos -d *

But is having problem when accessing only the domain, searching I found that you can expand to put the domain with the command:

certbot certonly --manual --preferred-challenges dns-01 --server --agree-tos -d "* " -d

The command opens a wizard after executing to expand it returns this error:
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA.

Can someone help me?

Hi @thandrade830

if you have that error, that’s only a typo, if your first command has worked.

certbot certonly --manual --preferred-challenges dns-01 
--agree-tos -d "* " -d

There are two spaces. Use

-d *

or test

-d “*”

The general solution is correct. You can’t use a certificate only with a wildcard domain name with the main domain name. You need both domain names * +

1 Like

I just ran the command you mentioned and gave this return:

An unexpected error occurred:
Error creating new order :: Cannot issue for "*": Domain name contains an invalid wildcard. A wildcard is only permitted before the first dot in a doma
in name.

For me to add a domain in wildcard is this the same way I’m trying?
Thank you!

“*” is invalid it should be “*”

Then test it without ".

Your first command has worked, so it’s not a general problem.

Strange that on my homologation server the same command worked.
And in the log does not show me many details of the error. =(
Running the command without “.” but not working.

I think @JuergenAuer meant the quote sign (").

But your error message still contains a hostname with a space after the asterisk (*). You should be 500 % certain your command doesn’t contain erroneous spaces in hostnames.

1 Like

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