Certbot does not generate certificate for my NodeJS server

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: api.chofu.app

I ran this command: sudo certbot certonly --webroot

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Please enter in your domain name(s) (comma and/or space separated)  (Enter 'c'
to cancel): api.chofu.app
Requesting a certificate for api.chofu.app
Performing the following challenges:
http-01 challenge for api.chofu.app
Input the webroot for api.chofu.app: (Enter 'c' to cancel): /home/nodered/chofu-rest-api/
Waiting for verification...
Challenge failed for domain api.chofu.app
http-01 challenge for api.chofu.app
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: api.chofu.app
   Type:   connection
   Detail: Fetching
   http://api.chofu.app/.well-known/acme-challenge/HT0uCSPGlSkZavPvB9zh0luvSJNN60k5gr3RGfAPCd4:
   Timeout after connect (your server may be slow or overloaded)

   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.

My web server is (include version): nodejs v10.19.0

The operating system my web server runs on is (include version): Ubuntu Server 18.04 LTS

My hosting provider, if applicable, is: self server

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 1.13.0

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.