I have been using letsencrypt certificate for 3 months. but i can not renew, i reinstalled certbot and tried to get new certificate with no success. i don't see any error in nginx error log. and A and AAAA records are created and both port 443 and port 80 are open.
my nginx config looks like this:
server {
listen 80;
listen [::]:80;server_name estudent.kmu.edu.et;
root /home/user/workspace/myapp/public;passenger_enabled on;
passenger_app_env production;
}
My domain is:
estudent.kmu.edu.et
I ran this command:
sudo certbot --nginx -d estudent.kmu.edu.et
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): estudent.system@gmail.com
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
(A)gree/(C)ancel: A
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for estudent.kmu.edu.et
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. estudent.kmu.edu.et (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://estudent.kmu.edu.et/.well-known/acme-challenge/641Di3Co-c_fFVHgeTorJvfICt0vY0Ayg5TfyUk5QlU: Connection reset by peer
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: estudent.kmu.edu.et
Type: connection
Detail: Fetching
http://estudent.kmu.edu.et/.well-known/acme-challenge/641Di3Co-c_fFVHgeTorJvfICt0vY0Ayg5TfyUk5QlU:
Connection reset by peerTo 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. -
Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
My web server is (include version):
nginx/1.14.0 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-117-generic x86_64)
My hosting provider, if applicable, is:
Ethio Telecom(Ethiopia)
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):
certbot 0.31.0