Trying to run:
sudo certbot certonly -w /var/www/html -d my.domain.com
And then I select
2: Place files in webroot directory (webroot)
(unrelated, how do I get this prompt to go away and automatically default it to option 2 from the first command I use?)
It times out with:
Failed authorization procedure. my.domain.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://my.domain.com/.well-known/acme-challenge/E20mgpj25X_UR4ck_agCTzuUqFvEWRPPME_NeESnV0E: Timeout during connect (likely firewall problem)
I thought at first for some reason apache wouldn’t serve contents within .well-known, so I tried to manually add a file b with contents ‘Hi’ and perform a
curl -O “http://my.domain.com/.well-known/acme-challenge/b”
cat b gives me ‘Hi’
(from another machine, on the same network though)
Tried also to create that example same file just to see if i apache would serve it
curl -O “http://my.domain.com/.well-known/acme-challenge/E20mgpj25X_UR4ck_agCTzuUqFvEWRPPME_NeESnV0E”
This ended up working as well.
Any suggestions on what I can try to see what’s not working well?