Failed authorization procedure and connection refused

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. https://crt.sh/?q=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: janusfortest.ml

I ran this command: sudo certbot --apache -d janusfortest.ml -d www.janusfortest.ml

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for janusfortest.ml
http-01 challenge for www.janusfortest.ml
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. janusfortest.ml (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://janusfortest.ml/.well-known/acme-challenge/AdHvHM6AKSuTxNn7wWu8X8pS9EkCoi_IWilrwGMYyM4: Connection refused, www.janusfortest.ml (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.janusfortest.ml/.well-known/acme-challenge/G7M09wDYI_JyFsTZqhKP4iF62gV2PrGHTQ8_9eZ1Lv4: Connection refused

IMPORTANT NOTES:

My web server is (include version):
Server version: Apache/2.4.29 (Ubuntu)
Server built: 2019-04-03T13:22:37

The operating system my web server runs on is (include version):
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):
Yes, cuz I run it on Virtual box

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

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

====
Hello.
I’m trying to issue Cert and Key using certbot on linux ubuntu now. but I got an errors that I don’t know. I have already searched it on google and tried to solve it. but didn’t work anything. I think I missed something cuz it is my first time to implement a web server. that’s why I post this on this community.
plz check it out and help me.

thx in advance

The site is not allowing for inbound http (port 80) connections.

Thx to reply :smiley:
how should I allow port 80 for connections? when I typed “nmap localhost”, it shows below:

Starting Nmap 7.60 ( https://nmap.org ) at 2019-04-18 16:42 KST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000097s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
631/tcp open ipp
3306/tcp open mysql

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds

So I thought It is already open to use.

Hi @Christopher_K

that's your local check. But using a check with another ip there is something, that blocks.

Your site is completely invisible ( https://check-your-website.server-daten.de/?q=janusfortest.ml ):

Domainname Http-Status redirect Sec. G
http://janusfortest.ml/
192.200.0.40 -2 1.454 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 192.200.0.40:80
http://www.janusfortest.ml/
192.200.0.40 -2 1.446 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 192.200.0.40:80
https://janusfortest.ml/
192.200.0.40 -2 1.453 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 192.200.0.40:443
https://www.janusfortest.ml/
192.200.0.40 -2 1.464 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 192.200.0.40:443

Is there a blocking firewall? Or a not / wrong configured router / missing port forward?

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