This tutorial is bases on the "SSL made easy" tutorial.
First, install the dependencies:
Quote:apt-get install openssl
Generate the certificates:
$SERVER_NAME = your hostname
ex.
openssl genrsa -des3 -out $SERVER_NAME-pass.key 2048
becomes
openssl genrsa -des3 -out server1.example.com-pass.key 2048
Quote:cd /etc/ssl/certs
echo $SERVER_NAME
openssl genrsa -des3 -out $SERVER_NAME-pass.key 2048
openssl req -new -key $SERVER_NAME-pass.key -out $SERVER_NAME.csr
openssl rsa -in $SERVER_NAME-pass.key -out $SERVER_NAME.key
openssl x509 -req -days 365 -in $SERVER_NAME.csr -signkey $SERVER_NAME.key -out $SERVER_NAME.crt
chmod 444 *.crt
chmod 400 *.key
chmod 400 *.key didnt work on my linux debian but chmod 400 fullnameofthefile.key did work.
Enable SSL for apache and reload Apache2:
Quote:a2enmod ssl
/etc/init.d/apache2 reload
Nano (or your other favorite text-editor) the apache2 config file:
Quote:nano /etc/apache2/sites-available/00_master.conf
Copy everything between the Master begin comment and Master end comment and paste it below so you would have 2 virtual hosts in that file.
ex.
Quote:#
# Master Begin
#
<VirtualHost xxx.xxx.xxx.xxx:80>
and everything in between
</VirtualHost>
#
# Master End
#
#
# SSL Begin
#
<VirtualHost xxx.xxx.xxx.xxx:443>
and everything in between
</VirtualHost>
#
# SSL End
#
Please note, xxx.xxx.xxx.xxx is for illustration only.
Note2, The port and the SSL begin has to be 443 for SSL
Add this to "SSL begin" entry:
Quote:SSLEngine On
SSLCertificateFile /etc/ssl/certs/$SERVER_NAME.crt
SSLCertificateKeyFile /etc/ssl/certs/$SERVER_NAME.key
ServerAlias admin.$SERVER_NAME
So it looks like:
Quote:#
# SSL Begin
#
<VirtualHost 192.168.123.165:443>
ServerAdmin User@$SERVER_NAME
DocumentRoot /var/www/ispcp/gui
ServerName $SERVER_NAME
ServerAlias admin.$SERVER_NAME
SSLEngine On
SSLCertificateFile /etc/ssl/certs/$SERVER_NAME.crt
SSLCertificateKeyFile /etc/ssl/certs/$SERVER_NAME.key
ServerAlias admin.$SERVER_NAME
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
Error...... ETC ETC ETC
Be sure to open port 443 and forward it.
Edit the default index.tpl file to enable the option for SSL with your favorite text-editor tool:
Quote:nano /var/www/ispcp/gui/themes/omega_original/index.tpl
Scroll down to the SSL section and uncomment it, then save the file as the same name; index.tpl
If you followed this correctly, you can now use the login panel with SSL and normal.
This is my first post and i hope this isnt a double post, i couldnt find anything on this.
Gleno0h.
*Credits to whoever made the SSL made easy tutorial;
SSL MADE EASY