error when installing letsencrypt

February 18, 2018 569 views
Let's Encrypt Apache Ubuntu 16.04
eladnm07
By:
eladnm07

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

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.