Hello,
I have debian 7 and apache and I manage the server myself, I tried to get and install a certificate with the command
Path / to / certbot-auto --apache
but I got the following error:
Failed authorization procedure. xxxxx.dz (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Failed to connect to x.x.x.x:443 for TLS-SNI-01 challenge
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: xxxxx.dz
Type: connection
Detail: Failed to connect to x.x.x.x:443 for TLS-SNI-01
challenge
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A 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.
Thank you for the reply. No, they canât, me too, I canât even from intranet. In reality, this is the first time I try to use https so I have only applied the instructions given here, I didnât do anything else befor. Can you help me ?
The manager of our network didnât block port 443 in the firewall, the proof of this is that I downloaded certbot with this method:
wget https://dl.eff.org/certbot-auto
I donât really understand this problem, normally, it is after creating
certificates that you can use port 443 but the certificates are not
created (there is no directory / etc / letsencrypt / live) why Then access the server with this port?
In the apache log, I have these warnings :
Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist (maby because the tls-sni-01 challenge failed)
[warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[warn] RSA server certificate CommonName (CN) `dummyâ does NOT match server name!?
The manager of our network didn't block port 443 in the firewall, the proof of this is that I downloaded certbot with this method:
wget https://dl.eff.org/certbot-auto
there is a difference between blocking outbound and inbound connections on a firewall
it may be that your server is listening on HTTPS (port 443) and certbot is not able to use it to server up what is needed
The network manager showed me the configuration of the firewall and I saw this rule: WAN to mywebsite.dz and I saw next to this rule http and https
I activated the ssl with this command âa2enmod sslâ I didnât know that I have to activate it, I thought that it is enough to have openssl installed. Now, from the intranet, when I type the local IP address of the server with port 443 (xxxx: 443) it displays the default page of apache (It works!). But outside (from the internet), when I type the public IP address of the server with port 443 (xxxx: 443) It says that the site is inaccessible
Does that means itâs the firewall the problem?
thank you for your help
at this stage i am going to tap out and not offer anymore assistance
if you review other posts that we worked on we were able to help customers who provided us their domain names by checking things such as is the HTTPS port open etc
the lack of ssl connectivity could be a firewall or a server problem
But as I said if you are not able to provide the information needed for troubleshooting then you should be able to troubleshoot it yourself
you canât not know how to troubleshoot an issue and then deny the information to those who can and want to help you - in my humble opinion
Thank you all for the replys, unfortunately I canât check now because the network manager has blocked ssh access from outside the local network and I forgot to tell him to activate it for me and I donât work on Friday and Saturday (weekend). I will let you know this sunday
Seems your site can be reached through HTTPS (port 443) now. It shows an invalid certificate, but that's OK: you were here to get a valid certificate in the first place, so we'll need to work on that
You might want to try the original command again next sunday: perhaps it works now
The owners of elearning.univ-bejaia.dz have misconfigured their website. To prevent your data from being stolen, Firefox has not connected to this website. Elearning.univ-bejaia.dz uses an invalid security certificate. ⌠etc
Yes, I want to run again this command next Sunday and I hope it will work
Hi Pipa, Try to shoot down the Apache server and execute the certificate installation may be this helps.
After installation of the certificate, start the Apache server again port 443 should be open before you install.
Hello,
I apologize in advance for the length of the message
I have run today the same command (Path / to / certbot-auto --apache ) but the error has changed:
Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter âcâ to cancel):1
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for elearning.univ-bejaia.dz
Waiting for verificationâŚ
Cleaning up challenges
Failed authorization
procedure. elearning.univ-bejaia.dz (tls-sni-01):
urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect validation certificate for TLS-SNI-01
challenge. Requested
f295c7a99a7e28b45bea937b29efa440.6e11c1e1716cfddaf213375d167408c3.acme.invalid
from 193.194.94.10:443. Received 1 certificate(s), first certificate
had names âfv-3kd3r14800074â
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: elearning.univ-bejaia.dz
Type: unauthorized
Detail: Incorrect validation certificate for TLS-SNI-01 challenge.
Requested f295c7a99a7e28b45bea937b29efa440.6e11c1e1716cfddaf213375d167408c3.acme.invalid
from 193.194.94.10:443. Received 1 certificate(s), first
certificate had names âfv-3kd3r14800074â
To fix these errors, please make sure that your domain name was entered correctly
and the DNS A record(s) for that domain contain(s) the right IP address.
I had the same error even after turning off apache. To check that port 443 is open I have run these two commands nmap -sT -O localhost
Starting Nmap 6.00 ( http://nmap.org ) at 2017-03-26 09:00 CET
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000024s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 992 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
139/tcp open netbios-ssn
443/tcp open https
In addition to the two files âdefaultâ and âdefault-sslâ In /etc/apache/sites-availables there is the same file in /etc/apache/sites-availables and
in /etc/apache/sites-enabled containing the following lines: