DirectAdmin Acquires Valid Certificate but Doesn't Install It


I’ve installed ssl through DirectAdmin. But now when I check through
Error Try these other domain names (extracted from the certificates): localhost - see?

My second:
Server: centos 6
Web Server: Apache


It appears your server either doesn’t support SNI and the cert for localhost is the default cert or your Let’s Encrypt certificate isn’t properly installed.

But you’ve removed most of the questions of the initial questionnaire, so I can’t help you further without it costing me much effort to ask the same questions again.


@Osiris is right

you should fill out all the questions to narrow down the problem please fill out the ones below.

Note you are serving up a self singed certificate currently

A) What Client did you use to install the certificate
B) What commands did you use
C) Did you restart APACHE
D) Did you update your SSL config
E) Are you sure you updated the correct config file



hi @ahaw021

A/B= I am use DirectAdmin panel for install letsencrypt
C= service restart
D= I did not catch (Because use DirectAdmin)
E= I have no information on this subject


hi @shaahin

thanks for that

the good news is that a certificate has been issued for your domain (covering www. version as well)

have a look at these instructions:

there is also a generic topic for LetsEncrypt here:

can you check the configuration file here: /usr/local/directadmin/conf

my perl is very rusty but i believe the first line turns ssl=0 to ssl=1

the other two lines point direct admin to your new certificate



Hi @shaahin

confirmed regarding the perl function

Installing a Purchased Certificate

If you already have your own certificate and key, then paste them into the following files:

certificate: /usr/local/directadmin/conf/cacert.pem
key: /usr/local/directadmin/conf/cakey.pem

Edit the /usr/local/directadmin/conf/directadmin.conf and set SSL=1 (default is 0). This tells DA to load the certificate and key and to use an SSL connection.
Ensure your directadmin.conf has the values set:

but can be changed as needed.

DirectAdmin needs to be restarted after any changes to the directadmin.conf.

If you also have a CA Root Certificate, this can be specified by adding:

into the /usr/local/directadmin/conf/directadmin.conf file (won’t exist by default) and by pasting the contents of the caroot cert into that file.


@ahaw021 Thank you very much ، half of my problem was resolved!

1- ssl was installed on the hostname and access to Directadmin was possible with ssl
2- But ssl not act on (with www or not)
Your connection is not secure in firefox and eg…

Anderi , To What should I do? The generic topic DirectAdmin not find anything!


hi @shaahin

Reach out to the DirectAdmin community.

Unfortunately I do not have expertise in this particular panel



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.