error when installing letsencrypt

February 18, 2018 2.4k views
Apache Let's Encrypt Ubuntu 16.04

i am trying to install lets encrypt but with no success. i get the following error:

Keeping the existing certificate
Could not reverse map the HTTPS VirtualHost to the original

IMPORTANT NOTES:

  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/www.deals4u.co.il/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/www.deals4u.co.il/privkey.pem Your cert will expire on 2018-05-19. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the “certonly” option. To non-interactively renew all of your certificates, run “certbot renew”

my conf file looks like this:

<VirtualHost *:80>
    ServerName deals4u
    ServerAlias www.deals4u.co.il
    DocumentRoot /var/www/html
    <Directory /var/www/html/>
        Options Indexes FollowSymLinks
        AllowOverride All
    </Directory>
</VirtualHost>

please help! i’m hopeless

edited by kamaln7
2 comments
2 Answers

Hi, it sounds like you’re renewing the certificate without having it installed on Apache first. Did you run sudo certbot --apache -d deals4u.co.il when you first tried to install Certbot?

Also, ServerName needs to be set to deal4u.co.il

i set the servername to deals4u.co.il
than i run:
sudo certbot –apache -d deals4u.co.il

still no success with the message i get:

What would you like to do?

1: Attempt to reinstall this existing certificate

2: Renew & replace the cert (limit ~5 per 7 days)

Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 1
Keeping the existing certificate
Could not reverse map the HTTPS VirtualHost to the original

IMPORTANT NOTES:

  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/deals4u.co.il/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/deals4u.co.il/privkey.pem Your cert will expire on 2018-05-19. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the “certonly” option. To non-interactively renew all of your certificates, run “certbot renew”
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!