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

Go Back   LiteSpeed Support Forums > LiteSpeed Load Balancer > General > ssl in lslb

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2009, 05:23 AM
ulises ulises is offline
New Member
 
Join Date: Jan 2009
Posts: 8
Default ssl in lslb

Hi

I hope you guys can help me on this one

I'm running litespeed Load balancer and I'm having problems setting up 2 diferents listeners with SSL

What i have

2 virtual host -- one site on each

1 Default listener -- with the 2 VH mapped on port 80

and i have created 2 diferents secure listeners to run on port 443 and each listener will have their own SSL CERT; however, Litespeed wont let me to run to listener at the time

I got this error

Code:
2009-01-19 03:03:01.003	ERROR	HttpListener::start(): Can't listen at address ssl-login: Address already in use!
2009-01-19 03:03:01.003	ERROR	HttpServer::addListener(ssl-login) failed to create new listener
2009-01-19 03:03:01.003	ERROR	[config:server:listener:ssl-login] failed to start SSL listener on address *:443!
how can I solve this? -- i need to difenrets sites running its own SSL CERT
Reply With Quote
  #2  
Old 01-19-2009, 06:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You need two IPs, and create SSL listener for each individual IP instead of "*:443".
Reply With Quote
  #3  
Old 01-19-2009, 07:06 AM
ulises ulises is offline
New Member
 
Join Date: Jan 2009
Posts: 8
thanks for your reply

I actually thought that and tried but got the same results

I have two IPs in the LB server

1.2.3.200 -- this is the main IP for the LB server eth0

1.2.3.201 -- this would be eh0:1

I assigned 1.2.3.200 to SSL listener # 1 and works

I assigned 1.2.3.201 to SSL listener # 2 but still get the same error

Code:
2009-01-19 05:01:26.168	ERROR	HttpListener::start(): Can't listen at address ssl-reports: Address already in use!
2009-01-19 05:01:26.168	ERROR	HttpServer::addListener(ssl-reports) failed to create new listener
2009-01-19 05:01:26.168	ERROR	[config:server:listener:ssl-reports] failed to start SSL listener on address 1.2.3..201:443!
do i need to add another IP -- so the SSL's listeners wont use the main IP?
Reply With Quote
  #4  
Old 01-19-2009, 08:38 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
For first listener, you have to change it from "*:443" to "1.2.3.200:443"
Reply With Quote
  #5  
Old 01-19-2009, 08:41 AM
ulises ulises is offline
New Member
 
Join Date: Jan 2009
Posts: 8
yes, I do have it that way

Code:
Running                  ssl-1	      1.2.3.200:443	[vh.com] www.domain1.com domain.com
Error	                      ssl-2	      1.2.3.201:443	N/A
Reply With Quote
  #6  
Old 01-19-2009, 08:48 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Please PM me the login to the web console, I can take a look.
Reply With Quote
  #7  
Old 01-19-2009, 08:50 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I think you need to stop it from command line, the start it again.
no to use "restart" from command line or web console.
Make sure the second IP does exist.
Reply With Quote
  #8  
Old 01-19-2009, 08:57 AM
ulises ulises is offline
New Member
 
Join Date: Jan 2009
Posts: 8
restaring from command line did it

thx man.
Reply With Quote
  #9  
Old 01-19-2009, 09:03 AM
ulises ulises is offline
New Member
 
Join Date: Jan 2009
Posts: 8
now i have some other strange problem

site-1 is working ok... however, site-2 seems to be reading the site-1's cert file eventhough the path is correct $SERVER_ROOT/ssl/site-2.crt

I have no errors nor warnings

any ideas?
Reply With Quote
  #10  
Old 01-19-2009, 09:06 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
make sure site-1.crt and site-2.crt are not identical.
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 03:08 PM.



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