Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 25th January 2008, 21:58
Robeast Robeast is offline
Junior Member
Join Date: Jan 2008
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Issues securing Webmail with SSL Certificate

My webmail client (squirrelMail) is working perfect, but I would like to run it over https. The url for the web mail client is webmail.domain.com. I had a SSL certificate built by a Certificate Authority (godaddy) for this URL. In ISPConfig, I enabled SSL for this site. I also copied the certificate into the SSL Certificate box and saved the certificate. I opened port 443 on my firewall. But when I go the website httpS://webmail.domain.com, the browser hits me with a pop saying, "webmail.domain.com has sent an incorrect or unexpected message."

I did a little research and I found I have to copy the certificate, intermediate certificate and key file onto the server and edit the ssl.conf file to point the SSLCertificateFile, SSLCertificateKeyFile and SSLCertificateChainFile variables to the correct path. I looked in the /root/ispconfig/httpd/conf directory and didn't find a ssl.conf file. I did a search for ssl.conf and found two (/etc/apache2/mods-available/ssl.conf, /etc/apache2/mods-enabled/ssl.conf). In both of these files there is no sections for any of these variables. Should I create a ssl.conf and put in the /root/ispconfig/httpd/conf or edit one or both of the existing ssl.conf? Or is there a way this can be handled through the ISPConfig control panel? Thanks in advance for any help.
Reply With Quote
Sponsored Links
Old 26th January 2008, 01:17
Hans Hans is offline
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts

If you're using ISPConfig on top of your system, all you have to do is walk through the steps mentioned here: http://www.howtoforge.com/faq/14_49_en.html. Make sure that apache2 has been started afterwards.

MrHostman | Managed Hosting
Reply With Quote
Old 28th January 2008, 17:14
Robeast Robeast is offline
Junior Member
Join Date: Jan 2008
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Issues securing Webmail with SSL Certificate

Thanks but I did that as described. That is how it is currently set up. I took a look at this post.


I took a look at my vhosts_ispconfig.conf file and noticed I don't have a NameVirtualHost XXX.XXX.XXX.XXX:443 or VirtualHost XXX.XXX.XXX.XXX:443 even though I have the SSL box checked in the ISP Site Control Panel. I have restarted the web-server service since I checked this box. I tried to edit this file and add the appropriate information, but when I restart the service the changes are erased.

Thanks again for any help.
Reply With Quote
Old 29th January 2008, 21:03
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

Is mod_ssl enabled? Please run
a2enmod ssl
and restart Apache.
Are there any errors in Apache's error log? What's the output of
ls -la /etc/apache2/vhosts
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 29th January 2008, 22:29
Robeast Robeast is offline
Junior Member
Join Date: Jan 2008
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Issues securing Webmail with SSL Certificate

Thanks for the reply. When I ran the "a2enmod ssl" it replied back with "This module is already enable!". Here is what the "ls -la /etc/apache2/vhosts" output looks like:

user@server:~$ sudo ls -la /etc/apache2/vhosts
total 20
drwxr-xr-x 2 root root 4096 2008-01-28 09:13 .
drwxr-xr-x 8 root root 4096 2008-01-08 11:02 ..
-rw-r--r-- 1 root root 2559 2008-01-29 15:22 Vhosts_ispconfig.conf
-rw-r--r-- 1 root root 2559 2008-01-29 15:22 Vhosts_ispconfig.conf~
-rw-r--r-- 1 root root 2559 2008-01-28 09:13 Vhosts_ispconfig.conf.backup

Thanks again for the help.
Reply With Quote
Old 29th January 2008, 22:41
daveb daveb is offline
Senior Member
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts

You could just upload the SSLCertificateChainFile gd_intermediate_bundle.cer from godaddy to your ssl folder.

Then add this to your apache directives within ispconfig control panel for site.
SSLCertificateChainFile /var/www/web?/ssl/gd_intermediate_bundle.cer
You might have to restart apache afterwards.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 18:59
SSL and ISPConfig/Apache issues (Help!) isalandr Installation/Configuration 18 16th November 2007 16:53
SSL Certificate for webmail dayjahone Installation/Configuration 10 13th August 2007 15:57
Help installing an SSL certificate james@thereidsonline.com Installation/Configuration 1 26th June 2007 19:11
ssl Certificate Invalid simplyworks Installation/Configuration 8 16th August 2006 17:44

All times are GMT +2. The time now is 14:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.