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.
[I have vyas.pro and vayu.vyas.pro working OK in https mode with their individual webroot created certificates from Lets encrypt it.
However, I cannot set for renewal as I get results given below.
My webroot is /srv/www/vyas/public and /srv/www/vayu.vyas/public,
It has /srv/www/vyas/public/.well-known/acme-challenge and /srv/www/vayu.vyas/public/.well-known/acme-challenge and is writable and readable
What is solution?
I shall give example of only vyas.pro, though there are similar issue with vayu.vyas.pro as well.]
I ran this command:
[sudo certbot --dry-run --webroot --webroot-path /srv/www/vyas/public -d vyas.pro]
It produced this output:
[--dry-run currently only works with the 'certonly' or 'renew' subcommands ('run')
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-67wmig1_/log or re-run Certbot with -v for more details.
spd@ml330:~$ sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found the following certs:
Certificate Name: vayu.vyas.pro
Serial Number: 40c415fe62b5d8461d7e524f6dc69b3e5fc
Key Type: ECDSA
Domains: vayu.vyas.pro
Expiry Date: 2024-06-22 18:20:35+00:00 (VALID: 87 days)
Certificate Path: /etc/letsencrypt/live/vayu.vyas.pro/fullchain.pem
Private Key Path: /etc/letsencrypt/live/vayu.vyas.pro/privkey.pem
Certificate Name: vyas.pro
Serial Number: 344a47d6e512e03037cf27bb4da40b5e6df
Key Type: ECDSA
Domains: vyas.pro
Expiry Date: 2024-06-22 18:19:54+00:00 (VALID: 87 days)
Certificate Path: /etc/letsencrypt/live/vyas.pro/fullchain.pem
Private Key Path: /etc/letsencrypt/live/vyas.pro/privkey.pem
spd@ml330:~$ sudo certbot certonly --dry-run --webroot --webroot-path /srv/www/vyas/public -d vyas.pro
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Simulating renewal of an existing certificate for vyas.pro
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: vyas.pro
Type: unauthorized
Detail: 79.77.23.86: Invalid response from http://vyas.pro/.well-known/acme-challenge/ZkW9Muxuux83qg1Ahmgs23BbbYsUaqPnxIg5DydNEl4: 404
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with v for more details.]
Giving output of the first command-
As above.
My web server is (include version):
[Apache/2.4.55 (Ubuntu)]
The operating system my web server runs on is (include version):
[Debian Linux Bookworm]
My hosting provider, if applicable, is:
[I run my own web servers]
I can login to a root shell on my machine (yes or no, or I don't know):
[Yes, I can login as su and sudo ]
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
[No cPanel]
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
[certbot 2.9.0] and [sudo: certboot-auto: command not found]
Thanks