Hello I have had my server going for a while and it seems in the last update, things broke with SSL. I dont use the built in DNS server as I have a set of bind9 servers that were already being used without issues. but my Cert is about to expire and it wont let me manually run it because of this error
hostname.com: DNS isn't configured properly for this domain: DNS resolution failed (A: All nameservers failed to answer the query mx.myhosted.site. IN A: Server 127.0.0.1 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.1 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.1 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.1 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.1 UDP port 53 answered SERVFAIL).
I am getting this when I run /root/mailinabox/management/ssl_certificates.py -v
Is there any way to force it to use the challenge file for HTTP instead like it use to?
Edit:
I was able to get it to do acme challenge but now I am gettign this error
``> Reading account key from /home/user-data/ssl/lets_encrypt/account.pem.
Validating existing account saved to /home/user-data/ssl/lets_encrypt/registration.json.
Reusing existing challenges for hostname.com.
ERROR:acme.challenges:Unable to reach http://hostname.com/.well-known/acme-challenge/123456_abcd: HTTPSConnectionPool(host=‘hostname.com’, port=443): Max retries exceeded with url: /.well-known/acme-challenge/123456_abcd (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘SSL3_GET_SERVER_CERTIFICATE’, ‘certificate verify failed’)],)”,),))
Validation file is not present — a file must be installed on the web server.
Reading account key from /home/user-data/ssl/lets_encrypt/account.pem.
Validating existing account saved to /home/user-data/ssl/lets_encrypt/registration.json.
Reusing existing challenges for hostname.com.
ERROR:acme.challenges:Unable to reach http://hostname.com/.well-known/acme-challenge/123456_abcd: HTTPSConnectionPool(host=‘hostname.com’, port=443): Max retries exceeded with url: /.well-known/acme-challenge/123456_abcd (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘SSL3_GET_SERVER_CERTIFICATE’, ‘certificate verify failed’)],)”,),))
Validation file is not present — a file must be installed on the web server.
hostname.com:
Something unexpected went wrong: [NeedToInstallFile(‘http://hostname.com/.well-known/acme-challenge/123456_abcd’, ‘123456_abcd.3lVMHnu87r2jqjihUOKZ2khoSn9Z6D2vBUSG0g3DXpE’, ‘123456_abcd’)]``
I can see the challenge file in /home/user-data/ssl/lets_encrypt/acme_challenges/ so . not sure why it cant find it now.