LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Need help with SSL Install for subdomain/vhost

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2007, 02:03 AM
malffred malffred is offline
Member
 
Join Date: Dec 2006
Location: Hawaii
Posts: 27
Question Need help with SSL Install for subdomain/vhost

Hey guys,

The SSL install looked quite straight forward so I thought I'd try it first before I posted it but haven't been able to get it to work.

I'm running several subdomain VHOSTS from my litespeed install and I'm trying to install a GoDaddy Turbo SSL cert I just got from them.

So first I'd like to ask if you guys have a tutorial or wiki entry that goes through an SSL cert install? I didn't see one.

But from the admin concole, I clicked on listeners, then clicked the SSL tab and filled in the correct info for the various fields. My httpd_conf file for SSL looks like so:

<keyFile>/home/sugarstats/ssl/sugarstats.key</keyFile>
<certFile>/home/sugarstats/ssl/manage.sugarstats.com.crt</certFile>
<certChain>0</certChain>
<CACertPath></CACertPath>
<CACertFile>/home/sugarstats/ssl/sf_issuing.crt</CACertFile>
<ciphers>ALL:!ADH:+SSLv2:+SSLv3:+TLSv1:+HIGH:+MEDI UM:+LOW:!EXPORT56:!EXPORT40:@STRENGTH</ciphers>

I recieved 2 certs from GoDaddy:

1.) manage.sugarstats.com.crt # I assume this is the certFile
2.) sf_issuing.crt # I assume this is the CACertFile?

Then did a restart but when I try to access via SSL I get a "connection reset" error or "connection interrupted" error in firefox. From the browser activity bar it shows it switching between "connecting" and "connected" multiple times then shows the error.

I should mention that this is only for one of the subdomains/vhosts (manage.sugarstats.com) and not all of them. The SSL cert from godaddy is also specific to that subdomain (i.e subdomain.mydomain.com). But I did not change any settings within that subdomain from the LSWS admin panel as I didn't see any SSL settings to set regarding VHOSTS.

Should I be putting the certs/keys into /opt/lsws/conf/cert ?

Also does it matter where I store the actual certs/key files and does it matter who the owner is/what the permissions are for them? If so what are the correct settings?

Thanks for any help, I've just switched form a nginx+mongrel_cluster setup for a few php/rails domains and this is by far the best/fastest solution taking everything into account.
Reply With Quote
  #2  
Old 01-12-2007, 11:06 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Is there any error message in error.log regarding the SSL configuration?
Your configuration looks all right to me. Maybe the SSL session get cached during the testing when the configuration is not right. Try from another browser or from any machine.

It does not matter where you put the certs and keys.

Thanks for the praise, please help us spread the words. :-)
Reply With Quote
  #3  
Old 01-12-2007, 11:33 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
It does look like something is wrong, what about remove the CA certification file, does it work? Your cert will not be trusted this way, but I want to know what exactly causes the problem.
Maybe something wrong with sf_issuing.crt, have you tried https://certificates.starfieldtech.c.../ca_bundle.crt instead?
Reply With Quote
  #4  
Old 01-12-2007, 02:10 PM
malffred malffred is offline
Member
 
Join Date: Dec 2006
Location: Hawaii
Posts: 27
mistwang,

Thanks for the input. I'm moving it over to a different server and maybe that will help. I'll try it again and check for errors then post back here.
Reply With Quote
  #5  
Old 01-12-2007, 02:24 PM
malffred malffred is offline
Member
 
Join Date: Dec 2006
Location: Hawaii
Posts: 27
So I created a new listener called SSL and added the domain I wanted, set it to port 443, put in the right keys, make the connection "secure" and get the following error:

[SSL] Config SSL Context for listener *:443 with Certificate File: /home/sugarstats/ssl/manage.sugarstats.com.crt and Key File:/home/sugarstats/ssl/sugarstats.key get SSL error: error:0906406D:PEM routinesEF_CALLBACKroblems getting password

The default listener on Port 80 works fine.

Perhaps I need to re-d/l my certs from GoDaddy?

Last edited by malffred; 01-12-2007 at 02:31 PM.. Reason: modifications
Reply With Quote
  #6  
Old 01-12-2007, 02:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You need to remove the password protection of your private key file.

try command
Code:
openssl rsa -in server.skey -out server.key
Also, you need to create a listener on port 443, and bind SSL certificate there. port 80 is for normal HTTP traffic.

If you plan to host mutltiple secured site, you need a unique IP for each site, when you create listener, only bind to that IP.
Reply With Quote
  #7  
Old 01-12-2007, 02:36 PM
malffred malffred is offline
Member
 
Join Date: Dec 2006
Location: Hawaii
Posts: 27
Great, that worked perfectly. I guess thats what I get for following godaddy's instructions. I'll remember this, thanks.
Reply With Quote
Reply

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


All times are GMT -7. The time now is 07:01 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.