I checked the all port and find out that my firewall already allow both inbound and outbound for port; 80, 443 and 53.
Any idea why I am getting this error?
sudo certbot renew --dry-run
[sudo] password for ************:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/cep.*********************.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for cep.*********************.com
Waiting for verification...
Cleaning up challenges
Attempting to renew cert (cep.*********************.com) from /etc/letsencrypt/renewal/cep.*********************.com.conf produced an unexpected error: Failed authorization procedure. cep.*********************.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://cep.*********************.com/.well-known/acme-challenge/vlRDmDbo5x9tnVkw-Xb3kwwNO9GbHuJjDrDS2vrbzn0: Connection reset by peer. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/cep.*********************.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/cep.*********************.com/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: cep.*********************.com
Type: connection
Detail: Fetching
http://cep.*********************.com/.well-known/acme-challenge/vlRDmDbo5x9tnVkw-Xb3kwwNO9GbHuJjDrDS2vrbzn0:
Connection reset by peer
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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
First of all, please run sudo certbot certificates and share us your output.
Please also share us your domain name. There’s a low possibility for us to help you without knowing anything to your server. (Since you also didn’t complete the form)
Attempting to renew cert (cep.***************.com) from /etc/letsencrypt/renewal/cep.***************.com.conf produced an unexpected error: Failed authorization procedure. cep.***************i.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: During secondary validation: Fetching http://cep.***************.com/.well-known/acme-challenge/W8mZnUe-RGvVQBpllM-9q_QLn4w0g0zQpxChnXS9u0U: Connection reset by peer. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/cep.***************.com/fullchain.pem (failure)
When I run this “http://cep.************.com/.well-known/acme-challenge/W8mZnUe-RGvVQBpllM-9q_QLn4w0g0zQpxChnXS9u0U” on my laptop safari says:
Safari can’t open page because the server unexpectedly dropped the connection.
In my nginx config I redirect everything to https. Can this be a problem? If so how to test “http://cep.************.com/.well-known/acme-challenge/W8mZnUe-RGvVQBpllM-9q_QLn4w0g0zQpxChnXS9u0U” ?
Also in my nginx config I have only this cep.***************.com. But in stackowerflow it says I have to put www. as well. Is that the problem that I am having?
server {
charset UTF-8;
listen 80;
listen [::]:80;
server_name cep.***************.com;
I found the answer! My first server in my nginx.conf only went to the site without "www." in front of it, also adding "www." as a server name solved the issue.
I found my certbot version is 0.31.0 but no auto version. I also run sudo find /etc/letsencrypt/live/ -type l* which shows the certificate. But when I run sudo tail -f /var/log/letsencrypt/letsencrypt.log I have an error on line 477.
Any idea or should I open a new questions?
niyazi@niyazi-virtual-machine:~$ certbot --version
**certbot 0.31.0**
niyazi@niyazi-virtual-machine:~$ certbot-auto --version
**certbot-auto: command not found**
niyazi@niyazi-virtual-machine:~$
niyazi@niyazi-virtual-machine:~$ **sudo tail -f /var/log/letsencrypt/letsencrypt.log**
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1365, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1272, in renew
renewal.handle_renewal_request(config)
File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 477, in handle_renewal_request
len(renew_failures), len(parse_failures)))
certbot.errors.Error: 1 renew failure(s), 0 parse failure(s)
niyazi@niyazi-virtual-machine:~$ **sudo find /etc/letsencrypt/live/ -type l**
/etc/letsencrypt/live/cep.niyazibankasi.com/fullchain.pem
/etc/letsencrypt/live/cep.niyazibankasi.com/chain.pem
/etc/letsencrypt/live/cep.niyazibankasi.com/privkey.pem
/etc/letsencrypt/live/cep.niyazibankasi.com/cert.pem
niyazi@niyazi-virtual-machine:~$
I found my certbot version is 0.31.0 but no auto version. I also run sudo find /etc/letsencrypt/live/ -type l* which shows the certificate. But when I run sudo tail -f /var/log/letsencrypt/letsencrypt.log I have an error on line 477.
Any idea ?
niyazi@niyazi-virtual-machine:~$ certbot --version
**certbot 0.31.0**
niyazi@niyazi-virtual-machine:~$ certbot-auto --version
**certbot-auto: command not found**
niyazi@niyazi-virtual-machine:~$
niyazi@niyazi-virtual-machine:~$ **sudo tail -f /var/log/letsencrypt/letsencrypt.log**
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1365, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1272, in renew
renewal.handle_renewal_request(config)
File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 477, in handle_renewal_request
len(renew_failures), len(parse_failures)))
certbot.errors.Error: 1 renew failure(s), 0 parse failure(s)
niyazi@niyazi-virtual-machine:~$ **sudo find /etc/letsencrypt/live/ -type l**
/etc/letsencrypt/live/cep.niyazibankasi.com/fullchain.pem
/etc/letsencrypt/live/cep.niyazibankasi.com/chain.pem
/etc/letsencrypt/live/cep.niyazibankasi.com/privkey.pem