Error installing a Certificate


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., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
I ran this command:
certbot -i apache -a webroot -w /var/www/html/drupal -d
It produced this output:
certbot -i apache -a webroot -w /var/www/html/drupal -d
My web server is (include version):
Apache/2.4.6 (CentOS)
The operating system my web server runs on is (include version):
CentOS Linux release 7.4.1708 (Core)
My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no


Hi @v.j,

What was the error that you got when trying to install the certificate?


PluginError: Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.


Do you have an existing working Apache server on this machine (that’s listening on port 80 for HTTP requests)?


If your website is online ( accessibly via browser through http://yourwebsite )

You should have conf files looking like those two one somewhere in your apache2


<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        Protocols h2 http/1.1
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        RewriteEngine on
        RewriteCond %{SERVER_NAME} =xxx
        RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]


<IfModule mod_ssl.c>

<VirtualHost *:443>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    Protocols h2 http/1.1
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLCertificateFile /etc/letsencrypt/live/xxx/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/xxx/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
    ServerName xxx
    Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"

# modern configuration, tweak to your need
SSLHonorCipherOrder     on
SSLCompression          on
SSLSessionTickets       off
SSLOptions +StrictRequire

# OCSP Stapling, only in httpd 2.3.3 and later
SSLUseStapling          on
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
SSLStaplingCache        shmcb:/var/run/ocsp(128000)

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

IF not, your apache setup is broken, or your server is missing dependencies.


I have existing apache server. And till yesterday, it was running on
I installed openssl and now its running on https://mywebiste which is not a trusted signed certificate.

I’m looking to run my website on both http and https or redirect http to https and with a trusted certificate.


My default.conf file has
<VirtualHost *:80>
ssl.conf has
<VirtualHost *:443>
Currently my website is running on both http and https. Basically it redirects http to https.
And I still get the error as
Failed authorization procedure. (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching Timeout


What’s your website? Does connecting to it from the Internet time out? Does it have a firewall blocking outside connections, or certain countries? Does it have IPv6? Does it work?


Yes, One of those. I could resolve the issue.
Thank you very much for the all your help.!


But unfortunately, it doesn’t show the lock symbol on the website url. It’s running on https but no lock symbol. How can we make it more secured.


Also after installing this certificate, other website stopped working.
For example, is working fine
But has stopped working.

Can you help me with this please?


We’re going to need you to give us some more information to help further. Not knowing the real domain name prevents us from being able to help as much, and isn’t even protecting any secrets because it’s already logged to the public certificate transparency logs.

There are a lot of reasons your site could show insecure, usually mixed-content issues. Try going through, if you wish.

As for “stopped working”, please be more specific. It’s not responding? It’s responding but with an invalid certificate? Apache is erroring out when trying to start it?


This website is on different server but with same domain name.
It was all working fine just before installing the certificate.
Sorry, Can’t share the domain name in public as the website is not available to public yet.
I could if there’s any way that I can post it separately.

Now it says:

This site can’t be reached took too long to respond.

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics


It sounds like something in your apache configs got messed up and isn’t listening for that vhost anymore. Post configs?

Also, side note, you made it public to anyone looking at the CT logs when you got a certificate in general.


Do I have to add a * like * for the sub domains to work?


That’s one option, but a much simpler one is to just add the subdomains as well. You can have up to 100 names on a single certificate from Let’s Encrypt.


That’s a good idea but where can I add the subdomain names.
I’m sorry but which file.



You add them with additional -d options to Certbot.


Is it like adding a new certificate? Do I have to configure all over again ?

Another question is: I would be assigning this dns ( to some other server with (may be a new static ip). Does this certificate follow there or I need to install a new SSL certificate in the that server too?




The certificate is a file that’s installed on a particular machine so unless you copy over all of the associated files, you don’t have the certificate on another machine.