Hi all - please bear with me, I cannot reveal domains for confidentiality reasons so am using fake names in the configs below.
Webserver: Apache/2.4.7 (Ubuntu)
certbot-auto: 0.22.0
I am having a config issue with Let’s Encrypt where multiple domains are being inadvertently linked to other non-related domains. It appears my config is issuing multiple domains to one domain. Evidence discovered through Certificate Transparency suggests that site1.com through to site7.com’s certificates were issued to site2.com, yet site2.com’s certificate does not show any of those sites in its Name or Alternative Names. The common thread is that I am hosting all these domains and using Let’s Encrypt for all of them.
I discovered this issue via Certificate Transparency searches but it is easiest illustrated via Let’s Encrypt renewal emails from cron:
The good (site1.com):
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/site1.com.conf
-------------------------------------------------------------------------------
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for site1.com
tls-sni-01 challenge for www.site1.com
Waiting for verification...
Cleaning up challenges
-------------------------------------------------------------------------------
new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/site1.com/fullchain.pem
-------------------------------------------------------------------------------
The bad (site2.com):
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/site2.com.conf
-------------------------------------------------------------------------------
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for www.site3.com
tls-sni-01 challenge for site4.com
tls-sni-01 challenge for site5.com
tls-sni-01 challenge for site6.com
tls-sni-01 challenge for site7.com
tls-sni-01 challenge for site1.com
tls-sni-01 challenge for site2.com
tls-sni-01 challenge for site3.com
tls-sni-01 challenge for www.site1.com
tls-sni-01 challenge for www.site2.com
tls-sni-01 challenge for www.site4.com
tls-sni-01 challenge for www.site5.com
tls-sni-01 challenge for www.site6.com
tls-sni-01 challenge for www.site7.com
Waiting for verification...
Cleaning up challenges
-------------------------------------------------------------------------------
new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/site2.com/fullchain.pem
-------------------------------------------------------------------------------
I have checked site2.com’s certificate and it does not have these other sites as a Subject Alternative Name, it merely has “site2.com” and “www.site2.com”.
Site2.com’s /etc/letsencrypt/renewal/site2.com.conf file:
# renew_before_expiry = 30 days
cert = /etc/letsencrypt/live/site2.com/cert.pem
privkey = /etc/letsencrypt/live/site2.com/privkey.pem
chain = /etc/letsencrypt/live/site2.com/chain.pem
fullchain = /etc/letsencrypt/live/site2.com/fullchain.pem
version = 0.20.0
archive_dir = /etc/letsencrypt/archive/site2.com
# Options and defaults used in the renewal process
[renewalparams]
installer = apache
authenticator = apache
account = _(redacted)_
apache_ctl = apache2ctl
Can anyone point me in the right direction here?
Thanks in advance,
Ent.
