ataraxia
Verified User
- Joined
- Sep 1, 2022
- Messages
- 6
I have followed the directadmin documentation to set up SSL with lets encrypt for the directadmin control panel on hostname:2222.
The SSL certificate has expired, I've used the letsencrypt.sh to attempt to renew the cert. The script finishes without problems.
However, the Directadmin daemon and Exim still use the old expired certificate. I can run the commands below to check the cert:
Both commands show that the cert has been set up correctly.
I run the commands below to check if SSL is enabled properly according to the documentation:
However, when I attempt to access the DA control panel, or retrieve new e-mail, I still receive errors showing that the SSL cert is out of date. When I check the certificate in my browser, I can see that it is still using the old cert.
This error does not occur when accessing
I have tried disabling and re-enabling SSL in the directadmin.conf, restarting directadmin and the server itself multiple times, tried different browsers and mail clients, requesting new certificates instead of renewing.
How can I ensure Directadmin and Exim use the new certificate?
Automatic TLS Certificate For Server Hostname | Directadmin Docs
DirectAdmin Knowledge Base
docs.directadmin.com
The SSL certificate has expired, I've used the letsencrypt.sh to attempt to renew the cert. The script finishes without problems.
./letsencrypt.sh request_single server.example.com 4096
Code:
Setting up certificate for a hostname:
2022/09/01 20:54:06 [INFO] acme: Obtaining SAN certificate
2022/09/01 20:54:06 [INFO] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/148441182327
2022/09/01 20:54:06 [INFO] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/148670627247
2022/09/01 20:54:06 [INFO] acme: authorization already valid; skipping challenge
2022/09/01 20:54:06 [INFO] acme: Could not find solver for: tls-alpn-01
2022/09/01 20:54:06 [INFO] acme: use http-01 solver
2022/09/01 20:54:06 [INFO] acme: Trying to solve HTTP-01
2022/09/01 20:54:25 [INFO] The server validated our request
2022/09/01 20:54:25 [INFO] acme: Validations succeeded; requesting certificates
2022/09/01 20:54:28 [INFO] Server responded with a certificate for the preferred certificate chains "ISRG Root X1".
Certificate for , has been created successfully!
DirectAdmin certificate has been setup.
Setting up cert for Exim...
Setting up cert for WWW server...
Setting up cert for FTP server...
The services will be restarted in about 1 minute via the dataskq.
However, the Directadmin daemon and Exim still use the old expired certificate. I can run the commands below to check the cert:
openssl x509 -in /usr/local/directadmin/conf/cacert.pem -text -noout
openssl x509 -in /etc/exim.cert -text -noout
Both commands show that the cert has been set up correctly.
Code:
Validity
Not Before: Sep 1 19:54:28 2022 GMT
Not After : Nov 30 19:54:27 2022 GMT
I run the commands below to check if SSL is enabled properly according to the documentation:
/usr/local/directadmin/directadmin config | egrep "^ssl=|^cacert=|^cakey="
Code:
cacert=/usr/local/directadmin/conf/cacert.pem
cakey=/usr/local/directadmin/conf/cakey.pem
ssl=1
However, when I attempt to access the DA control panel, or retrieve new e-mail, I still receive errors showing that the SSL cert is out of date. When I check the certificate in my browser, I can see that it is still using the old cert.
Code:
Validity
Not Before: Fri, 03 Jun 2022 02:42:13 GMT
Not After : Thu, 01 Sep 2022 02:42:12 GMT
This error does not occur when accessing
hostname
instead of hostname:2222
.I have tried disabling and re-enabling SSL in the directadmin.conf, restarting directadmin and the server itself multiple times, tried different browsers and mail clients, requesting new certificates instead of renewing.
How can I ensure Directadmin and Exim use the new certificate?