Hi There,
I have two vhosts configured on the server. Was able to install the certs for one of the hosts but I get error with the second one.
I am not able to understand what I am doing wrong.
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: www.chuckingfoot.com
I ran this command: sudo certbot --apache
It produced this output:
root@wp-thirugns:/etc/apache2# sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Which names would you like to activate HTTPS for?
1: chuckingfoot.com
2: www.chuckingfoot.com
3: filemyitreturns.com
4: www.filemyitreturns.com
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ācā to cancel): 1,2
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isnāt close to expiry.
(ref: /etc/letsencrypt/renewal/chuckingfoot.com.conf)
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/chuckingfoot.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/chuckingfoot.com/privkey.pem
Your cert will expire on 2018-09-04. 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ā
root@wp-thirugns:/etc/apache2#
My web server is (include version): Apache/2.4.18
The operating system my web server runs on is (include version): Ubuntu 16.04.4 LTS
My hosting provider, if applicable, is: Digital Ocean
I can login to a root shell on my machine (yes or no, or I donāt know): Yes
Iām using a control panel to manage my site (no, or provide the name and version of the control panel): No