WildCard Error certbot

Hello

I am trying to renew my wildcard certificate on the delegated zone * .sio.lyceefulbert.fr

I use the command

certbot -d * .sio.lyceefulbert.fr --manual --preferred-challenges dns certonly

but certbot tries to generate me a certificate for one of my aliases namely my gitlab server.

dns-01 challenge for gitlab.sio.lyceefulbert.fr

My order worked perfectly before, but I forgot an option to clarify that it is a wildard.

cordially

My domain is:sio.lyceefulbert.fr

I ran this command:certbot -d *.sio.lyceefulbert.fr --manual --preferred-challenges dns certonly

It produced this output:dns-01 challenge for gitlab.sio.lyceefulbert.fr

My web server is (include version): Nginx

The operating system my web server runs on is (include version): Debian 9.5

2 Likes

The only way I see that happening is if:

  • you had a file or directory named gitlab.sio.lyceefulbert.fr in your working directory, and
  • you didn't put quotes around *.sio.lyceefulbert.fr

So maybe try:

certbot -d "*.sio.lyceefulbert.fr" --manual --preferred-challenges dns certonly

Otherwise, could you please post the contents of /var/log/letsencrypt/letsencrypt.log?

3 Likes

Hello

Thank you very much, that fixed the problem.

I was doing this command without the quotes until now and it had never been a problem.

Thank you very much for your quick response

Best regards

2 Likes

That's because one almost never runs certbot in a directory where Bash can expand the wildcard. So when one actually does walk into Mordorsuch a directory, one doesn't expect Bash to expand the wildcard and you'll run into this issue.

Note: this is a Bash thing, not a certbot thing :slight_smile:

3 Likes

Indeed I should not have made the command in a user directory .... Well done and thank you again. :slight_smile:

4 Likes

What a great way of putting it!

4gi9g8

:grinning:

3 Likes

That's fantastic. :rofl:

And here I am out of likes for awhile. :heart:

This one goes into the handbook fo' sho'.

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