GIDNetwork > Accessing DirectAdmin Securely
Register
« A dedicated server for GIDNetwork sites Enabling Zend Optimizer with DirectAdmin »

Accessing DirectAdmin Securely

by: admin - Dec 03, 2005

One of the first things I did, as soon as I got my hands on my dedicated server, is to set it up so I can access the DirectAdmin Control Panel securely.

In other words, instead of accessing the page via a regular link like:

http://server.example.com:2222/

I preferred:

https://server.example.com:2222/

that is to say, using https instead of http.

Setting up DirectAdmin with an SSL certificate is the only page you need to get this set up for your server. Everything is explained very nicely except that the certificate you create for yourself will only be valid for ONE month (I think).

If you are like me and want this security certificate valid for the rest of the year, you'd have to replace this line:

Generic Code Example:

openssl req -new -x509 -keyout /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cacert.pem

with

Generic Code Example:

openssl req -new -x509 -days 365 -keyout /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cacert.pem

Notice how I inserted the number of days in that line with this bit: -days 365.

Once you have completed the rest of the instructions on that page, you need to restart DirectAdmin for the changes to take effect...

Generic Code Example:

/sbin/service directadmin restart

and you're all done!

Would you like to comment? This story has been viewed 7,931 times.
« A dedicated server for GIDNetwork sites Enabling Zend Optimizer with DirectAdmin »

__top__

Copyright © GIDNetwork™ 2001 - 2024

Another website by J de Silva

Page generated in : 0.00479 sec.