Certbot: error: unrecognized arguments: ‐‐dry‐run

Look the strange behavior

pi@raspberrypi:~ $ sudo certbot renew ‐‐dry‐run
usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] …

Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: ‐‐dry‐run

pi@raspberrypi:~ $ sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
… etc

Thank you all

1 Like
$ echo '‐‐dry‐run' | xxd
00000000: e280 90e2 8090 6472 79e2 8090 7275 6e0a  ......dry...run.

$ echo '--dry-run' | xxd
00000000: 2d2d 6472 792d 7275 6e0a                 --dry-run.

One set is unicode hyphen (U+2010), other one is normal ASCII one.

Probably copied from a forum post or something.

2 Likes

The dashes were altered in the first attempt:
[here is a zoomed in view]
image
compare with:
image

@_az Can/should certbot compensate for such a “simple mistake” ?

the zoom an incredible tool !!!

Great

Maybe Certbot could error when it encounters any unicode in the arguments.

I would prefer if the forum didn’t use unicode hyphens, single and double quotes when converting from Markdown→HTML.

This isn’t the first and probably won’t be the last time this problem has happened. Most users have no idea how to use code blocks, and we end up with commands that get corrupted after they get posted :man_shrugging:.

2 Likes

visualy seems the same but …

Thank you

1 Like

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