Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2007
    Location
    SomeCity
    Posts
    13

    Trying to run LS through Https / SSL

    Hi,

    I am trying to run lightstreamer over a ssl connection and am running into some issues. I am currently using a trial version of Vivace. I changed the config file to allow ssl on port 8443. I went through the steps to create a self signed certificate and keystore. Changed the client end to connect on port 8443. (I looked for something to tell the client that it was supposed to use ssl protocol, but could not find any thing..)

    When I attempt to connect to the LS server I get the following error:
    17-Apr-07 16:44:28,468 |ERROR|LightstreamerLogger.connections |SSL NIO ACCEPT SELECTOR |Handshake error
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    at com.sun.net.ssl.internal.ssl.EngineInputRecord.byt esInCompletePacket(EngineInputRecord.java:152)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNet Record(SSLEngineImpl.java:759)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap( SSLEngineImpl.java:674)
    at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:566)
    at com.lightstreamer.c.a.h.a(h.java)
    at com.lightstreamer.c.a.k.c(k.java)
    at com.lightstreamer.c.a.k.b(k.java)
    at com.lightstreamer.c.a.m.run(m.java)

    All help is appreciated!

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    The protocol used to connect to Lightstreamer Server is always the same used to download the Master Push-Page. So if the Master Push-Page is downloaded through HTTP, then HTTP will be used for all the connections to Lightstreamer Server. It the Master Push-Page is downloaded through HTTPS, all the connections to Lightstreamer Server will use HTTPS.

    So in order to activate HTTPS connections, you need to download your Master Push-Page through HTTPS.

  3. #3
    Member
    Join Date
    Jan 2007
    Location
    SomeCity
    Posts
    13
    Quote Originally Posted by Alex
    So in order to activate HTTPS connections, you need to download your Master Push-Page through HTTPS.
    Am I correct in assuming that the master page is downloaded when the site is first loaded? So if the site were to be accessed via https, then lightstreamer would connect via https?

    I just checked and it is working just fine now. I wasn't accessing the site via https, but I was still trying to connect LS over a ssl port.

    Thanks for the clarification!

 

 

Similar Threads

  1. HTTPS Configuration
    By wwatts in forum Adapter SDKs
    Replies: 1
    Last Post: May 2nd, 2012, 10:55 AM
  2. lightstreamer on https
    By ddhanis in forum General
    Replies: 3
    Last Post: December 15th, 2009, 10:45 AM
  3. Using Https to connect to the PushServer
    By mahen in forum Client SDKs
    Replies: 2
    Last Post: February 20th, 2009, 02:50 PM
  4. HTTPS & Flex Client
    By venkihere in forum Client SDKs
    Replies: 13
    Last Post: October 22nd, 2007, 06:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:12 AM.