My domain is: hkn.ucsd.edu
I ran this command:
certbot certonly --webroot --webroot-path /var/www/vhost.hkn/public/wordpress -d hkn.ucsd.edu -d hkn.sysnet.ucsd.edu
It produced this output:
certbot certonly --webroot --webroot-path /var/www/vhost.hkn/public/wordpress -d hkn.ucsd.edu -d hkn.sysnet.ucsd.edu
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
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/hkn.ucsd.edu.conf)
What would you like to do?
1: Keep the existing certificate for now
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
Certificate not yet due for renewal; no action taken.
My web server is (include version):
apache2 -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2020-08-12T21:35:50
The operating system my web server runs on is (include version):
Linux sysnet.sysnet.ucsd.edu 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
(Ubuntu 16.04.7)
My hosting provider, if applicable, is: N/A
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 --version
certbot 0.27.0
I have had this run just fine in the past but for some reason today it seems to be unhappy... looking at https://www.whynopadlock.com/ it seems that it's crabby about the cert being for hkn.sysnet.ucsd.edu rather than hkn.ucsd.edu in spite of the multiple -d I have above (and despite that working okay up to today)
I have verified that the conf file has the correct SSL files
grep -i ssl hkn.conf
SSLEngine on
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/hkn.sysnet.ucsd.edu/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hkn.sysnet.ucsd.edu/privkey.pem
and
ls -ltr /etc/letsencrypt/live/hkn.sysnet.ucsd.edu/
total 4
-rw-r--r-- 1 root root 682 May 28 16:22 README
lrwxrwxrwx 1 root root 46 May 28 16:33 privkey.pem -> ../../archive/hkn.sysnet.ucsd.edu/privkey2.pem
lrwxrwxrwx 1 root root 48 May 28 16:33 fullchain.pem -> ../../archive/hkn.sysnet.ucsd.edu/fullchain2.pem
lrwxrwxrwx 1 root root 44 May 28 16:33 chain.pem -> ../../archive/hkn.sysnet.ucsd.edu/chain2.pem
lrwxrwxrwx 1 root root 43 May 28 16:33 cert.pem -> ../../archive/hkn.sysnet.ucsd.edu/cert2.pem
I note also:
ls -l /etc/letsencrypt/renewal/hkn.*
-rw-r--r-- 1 root root 554 May 28 16:33 /etc/letsencrypt/renewal/hkn.sysnet.ucsd.edu.conf
-rw-r--r-- 1 root root 626 Apr 25 08:26 /etc/letsencrypt/renewal/hkn.ucsd.edu.conf
I should add:
- http[s]://hkn.[sysnet.].ucsd.edu are all supposed to force over to https://hkn.ucsd.edu
- this has worked up to today, i.e. that's the same certbot command I've used previously
- the error given on chrome is: NET::ERR_CERT_COMMON_NAME_INVALID
- the whynopadlock indicates that it's looking at hkn.sysnet.ucsd.edu
So I mean, that's consistent. It's behaving like I asked for a cert only for hkn.sysnet.ucsd.edu which would of course not work with hkn.ucsd.edu, except that I asked for both in using -d hkn.ucsd.edu -d hkn.sysnet.ucsd.edu with my certbot command as shown above.
Thanks,
CM