I’ve run into an issue that I can’t seem to find an answer to elsewhere. I have recently deleted two domains from my server as well as a subdomain. I deleted the SSL certificates, but when I do a dry run for renewing the certificates, certbot seems to still be looking for those domains and trying to generate certificates for them (see the output below). The domains that were deleted from my VPS were: jsumerau.com, writewhereithurts.net, and games.ryananddebi.com. Is there a way to get certbot to stop looking for these domains and trying to renew certificates for them?
I didn’t include all of the output, just the errors. I also deleted a lot of the “.coms” to limit the number of URLs.
(NOTE: This isn’t time-sensitive as all my certificates for the domains I am still hosting are working fine. I’d just like to have this solved before it’s time to renew the certificates so there are not errors.)
My primary domain is: www.ryantcragun.com
I ran this command: certbot renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Encountered vhost ambiguity when trying to find a vhost for games.ryananddebi.com but was unable to ask for user guidance in non-interactive mode. Certbot may need vhosts to be explicitly labelled with ServerName or ServerAlias directives.
*Falling back to default vhost :443…
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (ryananddebi.com) from /etc/letsencrypt/renewal/ryananddebi.com.conf produced an unexpected error: Failed authorization procedure. games.ryananddebi (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for games.ryananddebi. Skipping.
Processing /etc/letsencrypt/renewal/bgreatinitiative.net.conf
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
Waiting for verification…
Cleaning up challenges
Encountered vhost ambiguity when trying to find a vhost for games.ryananddebi.com but was unable to ask for user guidance in non-interactive mode. Certbot may need vhosts to be explicitly labelled with ServerName or ServerAlias directives.
*Falling back to default vhost :443…
Encountered vhost ambiguity when trying to find a vhost for jsumerau.com but was unable to ask for user guidance in non-interactive mode. Certbot may need vhosts to be explicitly labelled with ServerName or ServerAlias directives.
*Falling back to default vhost :443…
Encountered vhost ambiguity when trying to find a vhost for writewhereithurts.net but was unable to ask for user guidance in non-interactive mode. Certbot may need vhosts to be explicitly labelled with ServerName or ServerAlias directives.
*Falling back to default vhost :443…
Encountered vhost ambiguity when trying to find a vhost for www.jsumerau.com but was unable to ask for user guidance in non-interactive mode. Certbot may need vhosts to be explicitly labelled with ServerName or ServerAlias directives.
*Falling back to default vhost :443…
Encountered vhost ambiguity when trying to find a vhost for www.writewhereithurts.net but was unable to ask for user guidance in non-interactive mode. Certbot may need vhosts to be explicitly labelled with ServerName or ServerAlias directives.
*Falling back to default vhost :443…
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (www.ryantcragun) from /etc/letsencrypt/renewal/www.ryantcragun.com.conf produced an unexpected error: Failed authorization procedure. writewhereithurts (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect validation certificate for tls-sni-01 challenge. Requested a257def2dc4c052c06b0d1ffedf6ed70.cd6347b7d6d3de979ad5bde140dedb79.acme.invalid from 50.116.93.137:443. Received 3 certificate(s), first certificate had names “.hostgator.com, hostgator", www.jsumerau.com (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect validation certificate for tls-sni-01 challenge. Requested eb4caf4eef234bb2c6141c5a085c1d4f.045959d18c7143dd2f111b91fe00d3f3.acme.invalid from 50.116.93.138:443. Received 3 certificate(s), first certificate had names ".hostgator.com, hostgator”, games.ryananddebi.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for games.ryananddebi, www.writewhereithurts.net (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect validation certificate for tls-sni-01 challenge. Requested ae81654ba6dc6fa88e76a7013b14cb03.dfa3a7f754a2ae1dec6ff0ea30411f75.acme.invalid from 50.116.93.137:443. Received 3 certificate(s), first certificate had names “.hostgator.com, hostgator", jsumerau.com (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect validation certificate for tls-sni-01 challenge. Requested 70a2cee03ecabc458cbcc5ac464171c7.728d1f76ab3efd1c86f910938b11cde7.acme.invalid from 50.116.93.138:443. Received 3 certificate(s), first certificate had names ".hostgator.com, hostgator”. Skipping.
The following certs could not be renewed:
/etc/letsencrypt/live/ryananddebi.com/fullchain.pem (failure)
/etc/letsencrypt/live/www.ryantcragun.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)
The following certs were successfully renewed:
/etc/letsencrypt/live/bgreatinitiative.net/fullchain.pem (success)
/etc/letsencrypt/live/ryantcragun.com/fullchain.pem (success)
/etc/letsencrypt/live/deborahcragun.com/fullchain.pem (success)
/etc/letsencrypt/live/inheritedcancer.net/fullchain.pem (success)
/etc/letsencrypt/live/focusoutcomes.com/fullchain.pem (success)
The following certs could not be renewed:
/etc/letsencrypt/live/ryananddebi.com/fullchain.pem (failure)
/etc/letsencrypt/live/www.ryantcragun.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)
2 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
** - The following errors were reported by the server:**
** Domain: games.ryananddebi**
** Type: connection**
** Detail: DNS problem: NXDOMAIN looking up A for**
** games.ryananddebi**
** To fix these errors, please make sure that your domain name was**
** entered correctly and the DNS A/AAAA record(s) for that domain**
** contain(s) the right IP address. Additionally, please check that**
** your computer has a publicly routable IP address and that no**
** firewalls are preventing the server from communicating with the**
** client. If you’re using the webroot plugin, you should also verify**
** that you are serving files from the webroot path you provided.**
** - The following errors were reported by the server:**
** Domain: games.ryananddebi**
** Type: connection**
** Detail: DNS problem: NXDOMAIN looking up A for**
** games.ryananddebi**
** To fix these errors, please make sure that your domain name was**
** entered correctly and the DNS A/AAAA record(s) for that domain**
** contain(s) the right IP address. Additionally, please check that**
** your computer has a publicly routable IP address and that no**
** firewalls are preventing the server from communicating with the**
** client. If you’re using the webroot plugin, you should also verify**
** that you are serving files from the webroot path you provided.**
** - The following errors were reported by the server:**
** Domain: writewhereithurts**
** Type: unauthorized**
** Detail: Incorrect validation certificate for tls-sni-01 challenge.**
** Requested**
** a257def2dc4c052c06b0d1ffedf6ed70.cd6347b7d6d3de979ad5bde140dedb79.acme.invalid**
** from 50.116.93.137:443. Received 3 certificate(s), first**
** certificate had names “*.hostgator.com, hostgator”**
** Domain: www.jsumerau**
** Type: unauthorized**
** Detail: Incorrect validation certificate for tls-sni-01 challenge.**
** Requested**
** eb4caf4eef234bb2c6141c5a085c1d4f.045959d18c7143dd2f111b91fe00d3f3.acme.invalid**
** from 50.116.93.138:443. Received 3 certificate(s), first**
** certificate had names “*.hostgator.com, hostgator”**
** Domain: www.writewhereithurts**
** Type: unauthorized**
** Detail: Incorrect validation certificate for tls-sni-01 challenge.**
** Requested**
** ae81654ba6dc6fa88e76a7013b14cb03.dfa3a7f754a2ae1dec6ff0ea30411f75.acme.invalid**
** from 50.116.93.137:443. Received 3 certificate(s), first**
** certificate had names “*.hostgator.com, hostgator”**
** Domain: jsumerau**
** Type: unauthorized**
** Detail: Incorrect validation certificate for tls-sni-01 challenge.**
** Requested**
** 70a2cee03ecabc458cbcc5ac464171c7.728d1f76ab3efd1c86f910938b11cde7.acme.invalid**
** from 50.116.93.138:443. Received 3 certificate(s), first**
** certificate had names “*.hostgator.com, hostgator”**
** To fix these errors, please make sure that your domain name was**
** entered correctly and the DNS A/AAAA record(s) for that domain**
** contain(s) the right IP address.**
My web server is (include version): apache2 (2.4.18)
The operating system my web server runs on is (include version): Ubuntu 16.04
My hosting provider, if applicable, is: linode.com
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