Evren Yurtesen
Home arrow Blog arrow Quick Mail/SSL functionality
Wednesday, 07 January 2009
 
 
Newsflash

The http://dev.yurtesen.com is officially opened! You can register and submit your articles and guides. We will examine them and publish.

 
Quick Mail/SSL functionality Print
Written by Evren Yurtesen   
Monday, 18 September 2006

This is the quick guide for enabling SSL on H-Sphere mail servers.

1- Creating SSL Certificate for Mail Server

* Run the following commands to create a private key.

#cd /hsphere/local/config/httpd
#mkdir ssl && cd ssl
#openssl genrsa -out server.key 1024
#openssl rsa -in server.key -out server.pem

* Create certificate signing request (leave the password empty).

#openssl req -new -key server.key -out server.csr

* Create the certificate (for 10 years)

#openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

2- Edit H-sphere /hsphere/local/config/httpd/lsrv.conf.tmpl.custom using H-Sphere
template customization guide.
http://www.psoft.net/HSdocumentation/sysadmin/conf_file_template_customization.html#apache

The minimal configuration should be like this:

<IfDefine SSL>
<VirtualHost [[IP]]:443>
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
ServerAdmin webmaster@[[DOMAIN]]
DocumentRoot "/hsphere/shared/apache/htdocs"
ServerName [[EIP]]
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /hsphere/local/config/httpd/ssl/server.crt
SSLCertificateKeyFile /hsphere/local/config/httpd/ssl/server.key
</VirtualHost>
</IfDefine>

Last Updated ( Monday, 18 September 2006 )
 
< Prev   Next >
Google Search
Donate For My Work

Amazon Search


 
Top! Top!