Greetings! I am a fan of your work and love using certbot. I earned some experience working with it but this is the first time I am stuck.
Screencast with a problem is available at https://youtu.be/SM94N7AgN0Y
I have a fresh Ubuntu server with Docker setup with a container that needs the ssl certificate. I mount a local ./https
directory into the container, so that cerbot can write in the directory and changes are reflected in the container. I can create any file in the directory and this file is accessible from the Internet without a problem, but the challenge file that certbot creates somehow is not.
Please, guide me towards the solution!
---- Metadata -----
My domain is:
admin.nextfree.com.ua
I ran this command:
certbot certonly \
--webroot \
--webroot-path=/var/www/nextfree-web/https \
-m v.v.sikach@gmail.com \
-d admin.nextfree.com.ua
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for admin.nextfree.com.ua
Using the webroot path /var/www/nextfree-web/https for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. admin.nextfree.com.ua (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://admin.nextfree.com.ua/.well-known/acme-challenge/MiGdwuN7SI_2NJ82I08myZD0cEmjLGCMYULu9HXEoVo [31.131.22.46]: 404
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: admin.nextfree.com.ua
Type: unauthorized
Detail: Invalid response from
http://admin.nextfree.com.ua/.well-known/acme-challenge/MiGdwuN7SI_2NJ82I08myZD0cEmjLGCMYULu9HXEoVo
[31.131.22.46]: 404
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version):
Node express
The operating system my web server runs on is (include version):
Ubuntu 18.04.5 LTS
My hosting provider, if applicable, is:
-
I can login to a root shell on my machine (yes or no, or I don't know):
yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is:
0.27.0