jeffery
Verified User
- Joined
- Jan 13, 2004
- Messages
- 177
I have searched out the forum and finally got my DA worked with SSL.
So, I would like to minimize the work for those who are doing the same thing as me!
Mission : Apache can work with SSL (https) and now we want to get DirectAdmin work with SSL too.
(Connect with https://www.yourdomain.com:2222)
Assumption : Real certificate are purchased from GeoTru*t and other authority and installed to the system.
1. Copy Server Certificate to DirectAdmin Conf Directory.
# cp /etc/httpd/conf/ssl.crt/server.crt /usr/local/directadmin/conf
# cp /etc/httpd/conf/ssl.key/server.key /usr/local/directadmin/conf
2. Chown Certificate
# cd /usr/local/directadmin/conf
# chown diradmin:diradmin server.crt
# chown diradmin:diradmin server.key
# chmod 400 server.crt server.key
3. Edit directadmin.conf
# vi directadmin.conf
Edit :
SSL=0
to
SSL=1
cacert=/usr/local/directadmin/conf/cacert.pem
cakey=/usr/local/directadmin/conf/cakey.pem
to
cacert=/usr/local/directadmin/conf/server.crt
cakey=/usr/local/directadmin/conf/server.key
Save and Exit VI
:wq
4. Restart DirectAdmin
# service directadmin restart
=========================
You should be able to access DA Control Panel by using https://yourdomain.com:2222.
This tutorial is created after my search on the forum, and not *written* by me, I just want to help the other after I have been helped!~
Share the easy!
So, I would like to minimize the work for those who are doing the same thing as me!
Mission : Apache can work with SSL (https) and now we want to get DirectAdmin work with SSL too.
(Connect with https://www.yourdomain.com:2222)
Assumption : Real certificate are purchased from GeoTru*t and other authority and installed to the system.
1. Copy Server Certificate to DirectAdmin Conf Directory.
# cp /etc/httpd/conf/ssl.crt/server.crt /usr/local/directadmin/conf
# cp /etc/httpd/conf/ssl.key/server.key /usr/local/directadmin/conf
2. Chown Certificate
# cd /usr/local/directadmin/conf
# chown diradmin:diradmin server.crt
# chown diradmin:diradmin server.key
# chmod 400 server.crt server.key
3. Edit directadmin.conf
# vi directadmin.conf
Edit :
SSL=0
to
SSL=1
cacert=/usr/local/directadmin/conf/cacert.pem
cakey=/usr/local/directadmin/conf/cakey.pem
to
cacert=/usr/local/directadmin/conf/server.crt
cakey=/usr/local/directadmin/conf/server.key
Save and Exit VI
:wq
4. Restart DirectAdmin
# service directadmin restart
=========================
You should be able to access DA Control Panel by using https://yourdomain.com:2222.
This tutorial is created after my search on the forum, and not *written* by me, I just want to help the other after I have been helped!~
Share the easy!

Last edited: