Hey, I have some issues with trying to get a new certificate for my domain which is about to expire.
I have in the past issued certificates to 2 domains to test a few things, but it seems like when I try to renew a certificate to 1 domain it somehow redirects to the second domain.
Lets say the actual domain is mydomain.ddns.net, and the second test domain was mydomain2.ddns.net
I have completely removed the mydomain2 records on /etc/letsencrypt, if I run certbot certificates this is the output:
Found the following certs:
Certificate Name: mydomain.ddns.net
Serial Number: 4e222adb68dcd01e48d911afa117f51bc00
Key Type: RSA
Domains: mydomain.ddns.net
Expiry Date: 2023-07-12 21:42:02+00:00 (VALID: 5 days)
Certificate Path: /etc/letsencrypt/live/mydomain.ddns.net/fullchain.pem
Private Key Path: /etc/letsencrypt/live/mydomain.ddns.net/privkey.pem
This is the command I'm using to try to generate a new key(only testing in this case)
certbot certonly --webroot --webroot-path /var/www/openmediavault -d mydomain.ddns.net --dry-run
This is the output I'm getting:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Cert is due for renewal, auto-renewing...
Simulating renewal of an existing certificate for mydomain.ddns.net
Performing the following challenges:
http-01 challenge for mydomain.ddns.net
Using the webroot path /var/www/openmediavault for all unmatched domains.
Waiting for verification...
Challenge failed for domain mydomain.ddns.net
http-01 challenge for mydomain.ddns.net
Cleaning up challenges
Some challenges have failed.IMPORTANT NOTES:
The following errors were reported by the server:
Domain: mydomain.ddns.net
Type: dns
Detail: xx.xxx.xxx.115: Fetching
https://mydomain2.ddns.net/.well-known/acme-challenge/gWv7odBeLlNUJGlFWmz4AtHQxTtNn5TXGRaUtOvtevw:
no valid A records found for mydomain2.ddns.net; no valid AAAA
records found for mydomain2.ddns.net
I'm not sure why it still tries to go to the other domain, does anyone have any ideas on what I can check?
Thanks.