Hi,
I have already a working certificate for my nextcloud installation on buelowcloud.psybnc.org . I tried to install the certificate for my second domain paulas-masks.mooo.com with certbot. However, it doesn't work. According to https://www.ssllabs.com, the server seems to send the certificate for the other domain.
My domain is:
paulas-masks.mooo.com
I ran this command:
sudo certbot --apache
It produced this output:
Summary
sudo certbot --apacheSaving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apacheWhich names would you like to activate HTTPS for?
1: paulas-masks.mooo.com
2: www.paulas-masks.mooo.com
3: buelowcloud.psybnc.org
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Cert not yet due for renewalYou 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/paulas-masks.mooo.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
Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/paulas-masks.mooo.com.confPlease choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Redirecting vhost in /etc/apache2/sites-enabled/paulas-masks.mooo.com.conf to ssl vhost in /etc/apache2/sites-enabled/paulas-masks.mooo.com.conf
Congratulations! You have successfully enabled https://paulas-masks.mooo.com
You should test your configuration at:
SSL Server Test (Powered by Qualys SSL Labs)
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/paulas-masks.mooo.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/paulas-masks.mooo.com/privkey.pem
Your cert will expire on 2020-07-05. 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 web server is (include version):
Apache/2.4.38
The operating system my web server runs on is (include version):
Debian GNU/Linux 10 (buster)
My hosting provider, if applicable, is:
selfhosted
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 0.31.0