No, I;m afraid it’s more complicated than just doing a “certbot renew” Before trying “certbot renew”, I used the following command: “certbot certonly --webroot --agree-tos --email my-name@my-domain-name.org -d my-domain-name.org -d www.my-domain-name.org -d mahara.my-domain-name.org -w /home/my-domain-name/public_html/”
That’s when things got weird. I did it this way first because my subdomain had already expired, but I now think it was a mistake. It created the -0001 certificates. It renewed the www certificates correctly. It skipped the subdomain stating that the web challenge didn’t work - not authorized. I then tried “certbot renew” and nothing renewed. The subdomain again gave the web challenge issue. I am less worried about the subdomain because it is rarely used by main domain has thousands of user accounts.
I don’t have /etc/letsencrypt/cli.ini
The “/var/log/letsencrypt/letsencrypt.log” is huge. Do you still want me to post it here?
Here’s what I get from “sudo certbot certificates”
Found the following certs:
Certificate Name: my-domain-name.org
Domains: my-domain-name.org mahara.my-domain-name.org www.my-domain-name.org
Expiry Date: 2019-01-30 01:18:25+00:00 (VALID: 11 days)
Certificate Path: /etc/letsencrypt/live/my-domain-name.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/my-domain-name.org/privkey.pem
Certificate Name: www.my-domain-name.org
Domains: my-domain-name.org www.my-domain-name.org
Expiry Date: 2019-04-18 00:33:14+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/www.my-domain-name.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.my-domain-name.org/privkey.pem
Certificate Name: my-domain-name.org-0001
Domains: my-domain-name.org
Expiry Date: 2019-04-18 01:16:11+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/my-domain-name.org-0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/my-domain-name.org-0001/privkey.pem
Certificate Name: mahara.my-domain-name.org
Domains: mahara.my-domain-name.org
Expiry Date: 2019-01-06 07:46:20+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/mahara.my-domain-name.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/mahara.my-domain-name.org/privkey.pem
Here’s what I get from “sudo ls -alR /etc/letsencrypt/{archive,live,renewal}”
drwx------ 6 root root 4096 Jan 18 06:12 .
drwxr-xr-x 9 root root 4096 Jan 18 10:04 …
drwxr-xr-x 2 root root 4096 Nov 1 04:18 my-domain-name.org
drwxr-xr-x 2 root root 4096 Jan 18 04:16 my-domain-name.org-0001
drwxr-xr-x 2 root root 4096 Oct 8 11:46 mahara.my-domain-name.org
drwxr-xr-x 2 root root 4096 Jan 18 03:33 www.my-domain-name.org
/etc/letsencrypt/archive/my-domain-name.org:
total 40
drwxr-xr-x 2 root root 4096 Nov 1 04:18 .
drwx------ 6 root root 4096 Jan 18 06:12 …
-rw-r–r-- 1 root root 2159 Oct 5 12:31 cert1.pem
-rw-r–r-- 1 root root 2232 Nov 1 04:18 cert2.pem
-rw-r–r-- 1 root root 1647 Oct 5 12:31 chain1.pem
-rw-r–r-- 1 root root 1647 Nov 1 04:18 chain2.pem
-rw-r–r-- 1 root root 3806 Oct 5 12:31 fullchain1.pem
-rw-r–r-- 1 root root 3879 Nov 1 04:18 fullchain2.pem
-rw-r–r-- 1 root root 1708 Oct 5 12:31 privkey1.pem
-rw-r–r-- 1 root root 1704 Nov 1 04:18 privkey2.pem
/etc/letsencrypt/archive/my-domain-name.org-0001:
total 56
drwxr-xr-x 2 root root 4096 Jan 18 04:16 .
drwx------ 6 root root 4096 Jan 18 06:12 …
-rw-r–r-- 1 root root 1919 Jan 18 03:37 cert1.pem
-rw-r–r-- 1 root root 1915 Jan 18 03:51 cert2.pem
-rw-r–r-- 1 root root 1919 Jan 18 04:16 cert3.pem
-rw-r–r-- 1 root root 1647 Jan 18 03:37 chain1.pem
-rw-r–r-- 1 root root 1647 Jan 18 03:51 chain2.pem
-rw-r–r-- 1 root root 1647 Jan 18 04:16 chain3.pem
-rw-r–r-- 1 root root 3566 Jan 18 03:37 fullchain1.pem
-rw-r–r-- 1 root root 3562 Jan 18 03:51 fullchain2.pem
-rw-r–r-- 1 root root 3566 Jan 18 04:16 fullchain3.pem
-rw------- 1 root root 1700 Jan 18 03:37 privkey1.pem
-rw------- 1 root root 1704 Jan 18 03:51 privkey2.pem
-rw------- 1 root root 1704 Jan 18 04:16 privkey3.pem
/etc/letsencrypt/archive/mahara.my-domain-name.org:
total 24
drwxr-xr-x 2 root root 4096 Oct 8 11:46 .
drwx------ 6 root root 4096 Jan 18 06:12 …
-rw-r–r-- 1 root root 2179 Oct 8 11:46 cert1.pem
-rw-r–r-- 1 root root 1647 Oct 8 11:46 chain1.pem
-rw-r–r-- 1 root root 3826 Oct 8 11:46 fullchain1.pem
-rw-r–r-- 1 root root 1704 Oct 8 11:46 privkey1.pem
/etc/letsencrypt/archive/www.my-domain-name.org:
total 56
drwxr-xr-x 2 root root 4096 Jan 18 03:33 .
drwx------ 6 root root 4096 Jan 18 06:12 …
-rw-r–r-- 1 root root 2175 Nov 1 04:20 cert1.pem
-rw-r–r-- 1 root root 1927 Dec 31 10:53 cert2.pem
-rw-r–r-- 1 root root 1952 Jan 18 03:33 cert3.pem
-rw-r–r-- 1 root root 1647 Nov 1 04:20 chain1.pem
-rw-r–r-- 1 root root 1647 Dec 31 10:53 chain2.pem
-rw-r–r-- 1 root root 1647 Jan 18 03:33 chain3.pem
-rw-r–r-- 1 root root 3822 Nov 1 04:20 fullchain1.pem
-rw-r–r-- 1 root root 3574 Dec 31 10:53 fullchain2.pem
-rw-r–r-- 1 root root 3599 Jan 18 03:33 fullchain3.pem
-rw-r–r-- 1 root root 1704 Nov 1 04:20 privkey1.pem
-rw-r–r-- 1 root root 1704 Dec 31 10:53 privkey2.pem
-rw-r–r-- 1 root root 1704 Jan 18 03:33 privkey3.pem
/etc/letsencrypt/live:
total 28
drwx------ 6 root root 4096 Jan 18 07:29 .
drwxr-xr-x 9 root root 4096 Jan 18 10:04 …
drwxr-xr-x 2 root root 4096 Nov 1 04:18 my-domain-name.org
drwxr-xr-x 2 root root 4096 Jan 18 04:16 my-domain-name.org-0001
drwxr-xr-x 2 root root 4096 Jan 18 07:29 mahara.my-domain-name.org
-rw-r–r-- 1 root root 740 Jan 18 03:37 README
drwxr-xr-x 2 root root 4096 Jan 18 03:33 www.my-domain-name.org
/etc/letsencrypt/live/my-domain-name.org:
total 12
drwxr-xr-x 2 root root 4096 Nov 1 04:18 .
drwx------ 6 root root 4096 Jan 18 07:29 …
lrwxrwxrwx 1 root root 42 Nov 1 04:18 cert.pem -> …/…/archive/my-domain-name.org/cert2.pem
lrwxrwxrwx 1 root root 43 Nov 1 04:18 chain.pem -> …/…/archive/my-domain-name.org/chain2.pem
lrwxrwxrwx 1 root root 47 Nov 1 04:18 fullchain.pem -> …/…/archive/my-domain-name.org/fullchain2.pem
lrwxrwxrwx 1 root root 45 Nov 1 04:18 privkey.pem -> …/…/archive/my-domain-name.org/privkey2.pem
-rw-r–r-- 1 root root 682 Oct 5 12:31 README
/etc/letsencrypt/live/my-domain-name.org-0001:
total 12
drwxr-xr-x 2 root root 4096 Jan 18 04:16 .
drwx------ 6 root root 4096 Jan 18 07:29 …
lrwxrwxrwx 1 root root 47 Jan 18 04:16 cert.pem -> …/…/archive/my-domain-name.org-0001/cert3.pem
lrwxrwxrwx 1 root root 48 Jan 18 04:16 chain.pem -> …/…/archive/my-domain-name.org-0001/chain3.pem
lrwxrwxrwx 1 root root 52 Jan 18 04:16 fullchain.pem -> …/…/archive/my-domain-name.org-0001/fullchain3.pem
lrwxrwxrwx 1 root root 50 Jan 18 04:16 privkey.pem -> …/…/archive/my-domain-name.org-0001/privkey3.pem
-rw-r–r-- 1 root root 692 Jan 18 03:37 README
/etc/letsencrypt/live/mahara.my-domain-name.org:
total 12
drwxr-xr-x 2 root root 4096 Jan 18 07:29 .
drwx------ 6 root root 4096 Jan 18 07:29 …
lrwxrwxrwx 1 root root 49 Oct 8 11:46 cert.pem -> …/…/archive/mahara.my-domain-name.org/cert1.pem
lrwxrwxrwx 1 root root 50 Oct 8 11:46 chain.pem -> …/…/archive/mahara.my-domain-name.org/chain1.pem
lrwxrwxrwx 1 root root 54 Oct 8 11:46 fullchain.pem -> …/…/archive/mahara.my-domain-name.org/fullchain1.pem
lrwxrwxrwx 1 root root 52 Oct 8 11:46 privkey.pem -> …/…/archive/mahara.my-domain-name.org/privkey1.pem
-rw-r–r-- 1 root root 682 Oct 8 11:46 README
/etc/letsencrypt/live/www.my-domain-name.org:
total 12
drwxr-xr-x 2 root root 4096 Jan 18 03:33 .
drwx------ 6 root root 4096 Jan 18 07:29 …
lrwxrwxrwx 1 root root 46 Jan 18 03:33 cert.pem -> …/…/archive/www.my-domain-name.org/cert3.pem
lrwxrwxrwx 1 root root 47 Jan 18 03:33 chain.pem -> …/…/archive/www.my-domain-name.org/chain3.pem
lrwxrwxrwx 1 root root 51 Jan 18 03:33 fullchain.pem -> …/…/archive/www.my-domain-name.org/fullchain3.pem
lrwxrwxrwx 1 root root 49 Jan 18 03:33 privkey.pem -> …/…/archive/www.my-domain-name.org/privkey3.pem
-rw-r–r-- 1 root root 682 Nov 1 04:20 README
/etc/letsencrypt/renewal:
total 28
drwxr-xr-x 2 root root 4096 Jan 18 08:13 .
drwxr-xr-x 9 root root 4096 Jan 18 10:04 …
-rw-r–r-- 1 root root 555 Jan 18 04:16 my-domain-name.org-0001.conf
-rw-r–r-- 1 root root 769 Nov 1 04:18 my-domain-name.org.conf
-rw-r–r-- 1 root root 692 Oct 8 11:46 mahara.my-domain-name.org.conf
-rw-r–r-- 1 root root 1024 Jan 18 08:13 .mahara.my-domain-name.org.conf.swp
-rw-r–r-- 1 root root 728 Jan 18 03:33 www.my-domain-name.org.conf