I’ve found a few posts on here that have this problem, but the solutions I have found do not work.
My configuration is elastic beanstalk, with two containers. One nginx and the other is my app.
When curling www.engauge.xyz/.well-known/acme-challenge/test I get a valid response (which maps to data/letsencrypt/.well-known/acme-challenge/test on my host).
I have run it in verbose mode and it appears to create the temporary files correctly
- Removing /data/letsencrypt/.well-known/acme-challenge/ZeomZHDgadPz-M5NO-c
- Removing /data/letsencrypt/.well-known/acme-challenge/S2cl3-TUSYuk
And I am running certbot via the container with the following command
sudo docker run -it --rm
-v certs:/etc/letsencrypt
-v certs-data:/data/letsencrypt
deliverous/certbot
certonly
–preferred-challenges=http
–webroot --webroot-path=/data/letsencrypt
-d engauge.xyz -d www.engauge.xyz
Any help is much appreciated. I’m out of ideas to debug.