Good day, I have a new server (LXC) based on a newly installed other server. I have great trouble removing all references to the old server hostname (admin settings, hosts file, hostname file, directadmin.conf and options.conf. There is still a reference to the old hostname because I cannot make a (new) Letsencrypt certificate.
# /usr/local/directadmin/scripts/letsencrypt.sh request_single lezard.plie.nl 4096
Setting up certificate for a hostname: lezard.plie.nl
Challenge pre-checks for http://lezard.plie.nl/.well-known/acme-challenge/letsencrypt_1597824098 failed... Command:
/usr/local/bin/curl --connect-timeout 40 -k --silent --resolve lezard.plie.nl:80:5.200.11.122 --resolve lezard.plie.nl:443:5.200.11.122 -I -L -X GET http://lezard.plie.nl/.well-known/acme-challenge/letsencrypt_1597824098
Exiting.
When I check the validity of the certificate that I was able to make yesterday I get the following:
Certificate does not match name lezard.plie.nl
I think that perhaps there is an issue with cURL? I can also not make backups.
So in short:
- I need to renew the SSL certificates to reflect the correct hostname
- I cannot replace the SSL cert with Letsencrypt due to unclear errors
- I want to delete the old certificate file, hoping that this may trigger a new SSL cert if I start the process.
- I may have a problem with cURL, but other than repeating ./build curl I do not see how to problem-solve
Thank you and kind regards,
Harro
# /usr/local/directadmin/scripts/letsencrypt.sh request_single lezard.plie.nl 4096
Setting up certificate for a hostname: lezard.plie.nl
Challenge pre-checks for http://lezard.plie.nl/.well-known/acme-challenge/letsencrypt_1597824098 failed... Command:
/usr/local/bin/curl --connect-timeout 40 -k --silent --resolve lezard.plie.nl:80:5.200.11.122 --resolve lezard.plie.nl:443:5.200.11.122 -I -L -X GET http://lezard.plie.nl/.well-known/acme-challenge/letsencrypt_1597824098
Exiting.
When I check the validity of the certificate that I was able to make yesterday I get the following:
Certificate does not match name lezard.plie.nl
Subject | moustique.plie.nl |
Valid from 18/Aug/2020 to 16/Nov/2020 | |
Issuer | Let's Encrypt Authority X3 |
I think that perhaps there is an issue with cURL? I can also not make backups.
So in short:
- I need to renew the SSL certificates to reflect the correct hostname
- I cannot replace the SSL cert with Letsencrypt due to unclear errors
- I want to delete the old certificate file, hoping that this may trigger a new SSL cert if I start the process.
- I may have a problem with cURL, but other than repeating ./build curl I do not see how to problem-solve
Thank you and kind regards,
Harro