Certbot challenge fails internal logs have 404 error

Happy to help. :blush:

It is here under the testing section. :slightly_smiling_face:

That's a much stickier wicket that unfortunately no amount of optioning in certbot will circumvent.

I was unaware of the testing help page, thanks, just the CLI help, and I didn’t see the ‘-h all’ option, which is an approach I hadn’t seen before and that is definitely my bad.

When I said "the testing section", I meant under the CLI options in the certbot manual page to which I previously linked.

I'm not sure which -h option you're meaning. Certbot has no such option to my knowledge. Were you meaning --http-01-port?

The CLI has this:
More detailed help:

-h, --help [TOPIC] print this message, or detailed help on a topic;
the available TOPICS are:

all, automation, commands, paths, security, testing, or any of the
subcommands or plugins (certonly, renew, install, register, nginx,
apache, standalone, webroot, etc.)

Which the leads to:
sudo certbot -h all | grep http
"http,dns"). Not all plugins support all challenges.
See User Guide — Certbot 5.2.0.dev0 documentation
pick "http" rather than "http-01", Certbot will select
browser to use https:// for every http:// resource.
https://acme-staging-v02.api.letsencrypt.org/directory
--http-01-port HTTP01_PORT
Port used in the http-01 challenge. This only affects
--http-01-address HTTP01_ADDRESS
The address the server listens to during http-01
--https-port HTTPS_PORT
https://acme-v02.api.letsencrypt.org/directory)
after renewal; see User Guide — Certbot 5.2.0.dev0 documentation for

hence my comment

Ah. Makes sense. Oddly, -h isn't in the manual. :thinking:

It is. I barely remember it exists but it is fairly helpful. I usually rely on my saved links to the docs site :slight_smile:

options:
-h, --help show this help message and exit

sudo certbot -h nginx

Shows the http port option and related options.