Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: bwrs.cdaytech.co.uk
I ran this command: docker compose, shown below
It produced this output:
Cert is due for renewal, auto-renewing...
certbot_1 | Non-interactive renewal: random delay of 57.120881546758554 seconds
certbot_1 | Plugins selected: Authenticator webroot, Installer None
certbot_1 | Renewing an existing certificate for bwrs.cdaytech.co.uk
certbot_1 | Performing the following challenges:
certbot_1 | http-01 challenge for bwrs.cdaytech.co.uk
certbot_1 | Using the webroot path /var/www/certbot for all unmatched domains.
certbot_1 | Waiting for verification...
certbot_1 | Challenge failed for domain bwrs.cdaytech.co.uk
certbot_1 | http-01 challenge for bwrs.cdaytech.co.uk
certbot_1 | Cleaning up challenges
certbot_1 | Failed to renew certificate bwrs.cdaytech.co.uk with error: Some challenges have failed.
certbot_1 |
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot_1 | All renewals failed. The following certificates could not be renewed:
certbot_1 | /etc/letsencrypt/live/bwrs.cdaytech.co.uk/fullchain.pem (failure)
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot_1 | 1 renew failure(s), 0 parse failure(s)
certbot_1 | IMPORTANT NOTES:
certbot_1 | - The following errors were reported by the server:
certbot_1 |
certbot_1 | Domain: bwrs.cdaytech.co.uk
certbot_1 | Type: unauthorized
certbot_1 | Detail: Invalid response from
certbot_1 | https://bwrs.cdaytech.co.uk/.well-known/acme-challenge/tDli8qVGj0sEjyTDt87O1rGXfhvmbBywZrz6gSHA8Go
certbot_1 | [2606:4700:3030::ac43:a9bd]: "\n \n
certbot_1 | <html lang="en">\n \n <meta
certbot_1 | charset="utf-8">\n "
certbot_1 |
certbot_1 | To fix these errors, please make sure that your domain name was
certbot_1 | entered correctly and the DNS A/AAAA record(s) for that domain
certbot_1 | contain(s) the right IP address.
My web server is (include version): nginx
The operating system my web server runs on is (include version): docker, on ubunut 20.04
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 (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): docker certbot/certbot
Docker-compose:
certbot:
image: certbot/certbot
restart: always
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
nginx.conf:
events {}
http{
server {
listen 80;
server_name bwrs.cdaytech.co.uk;
location / {
return 301 https://$host$request_uri;
}
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
server {
listen 443 ssl;
server_name bwrs.cdaytech.co.uk;
ssl_certificate /etc/letsencrypt/live/bwrs.cdaytech.co.uk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/bwrs.cdaytech.co.uk/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
include /etc/nginx/cloudflare;
location / {
proxy_pass http://bitwarden;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /admin {
proxy_pass http://bitwarden/admin;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
auth_basic "Administrator Area";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
}