1

Topic: Multiple cetificates

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

I already have successfully installed an SSL certificate for our main email domain, mail.domain1.com. Now I created another domain in roundcube and added the DNS entry for mail.domain2.com. Turns out, the SSL certificate covers only the first domain. Now I also need another certificate for the second domain. It easy to get a certificate but how do I install it or where do I put it?
Does anyone here have successfully installed multple SSL certificates in their multiple domain setup? Is this possible?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Multiple cetificates

Hi nerdtron,

It is possible to install multiple ssl certificates for multiple domain. You can configure apache 2 with virtual hosts where each hosts points to different SSL certificates. Like creating a multiple sites.

for eg..,

root@ip-10-48-234-13:/etc/apache2/sites-available# cat /etc/apache2/sites-available/testsni.org
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName testsni.org
DocumentRoot /var/www

</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>

ServerAdmin webmaster@localhost
ServerName testsni.org
DocumentRoot /var/www

# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on

# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/apache2/ssl/testsni.org/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/testsni.org/apache.key
</VirtualHost>

</IfModule>

root@ip-10-48-234-13:~# vi /etc/apache2/sites-available/testsni.com
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName testsni.com
DocumentRoot /var/www

</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>

ServerAdmin webmaster@localhost
ServerName testsni.com
DocumentRoot /var/www

# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on

# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/apache2/ssl/testsni.com/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/testsni.com/apache.key
</VirtualHost>

</IfModule>



nerdtron09 wrote:

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

I already have successfully installed an SSL certificate for our main email domain, mail.domain1.com. Now I created another domain in roundcube and added the DNS entry for mail.domain2.com. Turns out, the SSL certificate covers only the first domain. Now I also need another certificate for the second domain. It easy to get a certificate but how do I install it or where do I put it?
Does anyone here have successfully installed multple SSL certificates in their multiple domain setup? Is this possible?

3

Re: Multiple cetificates

I would not recommend the setup suggested by soundarajan - read more here: http://wiki.apache.org/httpd/NameBasedSSLVHosts

Better is to get new IP address from your ISP and setup IP based virtual hosts in apache...