lmery
September 27, 2020, 11:03am
1
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
_az
September 27, 2020, 11:24am
2
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
lmery
September 27, 2020, 12:59pm
3
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
Osiris
September 27, 2020, 1:32pm
4
That's because one almost never runs certbot in a directory where Bash can expand the wildcard. So when one actually does walk into Mordor such 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
3 Likes
lmery
September 27, 2020, 2:45pm
5
Indeed I should not have made the command in a user directory .... Well done and thank you again.
4 Likes
schoen
September 28, 2020, 2:29am
6
What a great way of putting it!
3 Likes
griffin
September 28, 2020, 3:56am
7
That's fantastic.
And here I am out of likes for awhile.
This one goes into the handbook fo' sho'.
system
Closed
October 28, 2020, 3:56am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.