Connection Refused When Requesting for New Certificate

My domain is: dev.bookshelf.sun-asterisk.ph

I ran this command: sudo ./init-letsencrypt.sh

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for dev.bookshelf.sun-asterisk.ph
Using the webroot path /var/www/certbot for all unmatched domains.
Waiting for verification...
Challenge failed for domain dev.bookshelf.sun-asterisk.ph
http-01 challenge for dev.bookshelf.sun-asterisk.ph
Cleaning up challenges
Some challenges have failed.

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

   Domain: dev.bookshelf.sun-asterisk.ph
   Type:   connection
   Detail: Fetching
   http://dev.bookshelf.sun-asterisk.ph/.well-known/acme-challenge/X-fDlMuF5MGEu4wynoFEyi50xMpvmQ1Q_FYtKnHRXZE:
   Connection refused

   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): nginx:1.15-alpine (Used as image in docker)

The operating system my web server runs on is (include version): CentOS Linux 7 (Core)

My hosting provider, if applicable, is: dotPH

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I am using docker with my Rails Application.

1 Like

Hi @CharlotteDS

there is a check of your domain, two days old - https://check-your-website.server-daten.de/?q=dev.bookshelf.sun-asterisk.ph

Domainname Http-Status redirect Sec. G
http://dev.bookshelf.sun-asterisk.ph/
104.248.152.54 -2 1.800 V
ConnectFailure - Unable to connect to the remote server
https://dev.bookshelf.sun-asterisk.ph/
104.248.152.54 -2 1.796 V
ConnectFailure - Unable to connect to the remote server
http://dev.bookshelf.sun-asterisk.ph/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
104.248.152.54 -2 1.813 V
ConnectFailure - Unable to connect to the remote server

Only blocked connections.

If you want to use http validation, a running webserver and an open port 80 are required.

http://dev.bookshelf.sun-asterisk.ph/.well-known/acme-challenge/random-filename

should answer with a http status 404 - Not Found.

1 Like

I only followed this article: https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71.

I already have a working application. I added a link between my app and nginx in the docker-compose.yml.

There

is another user. Same tutorial, same problem.

Perhaps the tutorial is incomplete.

2 Likes

I already solved the issue.
I accidentally erased a word in the configuration file.

2 Likes

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