Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008

    Using Https to connect to the PushServer


    I am using Https to connect to the LightStreamer server using com.lightstreamer.ls_client.LSClient. The pushServerUrl in com.lightstreamer.ls_client.ConnectionInfo class passed in to LSClient has a url of the form https://XXX.XX etc.
    When i try to connect in this way, i am getting the following error:

    do i have to put any certificates in a particular location in LightStreamer installation?
    or, do i have to do something else/
    Thanks in advance for any pointers.

    Exception in thread "main" com.lightstreamer.ls_client.PushConnException: Remote host closed connection during handshake
    at com.lightstreamer.ls_client.PushServerProxy.connec tForSession(
    at com.lightstreamer.ls_client.ServerManager.<init>(S
    at com.lightstreamer.ls_client.LSClient.openConnectio n(
    at :57)
    Caused by: Remote host closed connection during handshake
    at ord(Unknown Source)
    at InitialHandshake(Unknown Source)
    at ndshake(Unknown Source)
    at ndshake(Unknown Source)
    at Source)
    at Source)
    at Source)
    at Source)
    at com.lightstreamer.ls_client.HttpProvider.sendPost(
    at com.lightstreamer.ls_client.HttpProvider.connectAn dGetAnswer(
    at com.lightstreamer.ls_client.HttpProvider.doPost(Ht
    at com.lightstreamer.ls_client.PushServerTranslator.c allSession(
    at com.lightstreamer.ls_client.PushServerProxy.connec tForSession(
    ... 3 more
    Caused by: SSL peer shut down incorrectly
    at own Source)
    ... 16 more

  2. #2
    Join Date
    Jul 2006
    You must have enabled the 443 port on the Server by uncommenting the <https_server> element in the Server configuration file. There, you also find the <keystore> subelement, where the path to your certificate files is supplied (see the embedded comment for notes on the certificates).

    The keystore provided in the "conf" directory is self-signed. We provide it because it allows you to try https access from a browser (the browser will prompt you for acceptance). Can you access the Server in https successfully from a browser?

    Access in https from a java program, on the other hand, requires that either a correct certificate is mounted on the Server or, in case of a self-signed certificate, that the same certificate is supplied to the JVM "truststore".
    This can be done by application code, with no involvement of Lightstreamer Java Client Library.
    Anyway, please show us the corresponding Server log for a check.

  3. #3
    Join Date
    May 2008
    Thanks Dario for the reply.
    It was an issue with the client. I had to set it up properly by giving the truststore etc. now it looks fine.



Similar Threads

  1. HTTPS Configuration
    By wwatts in forum Adapter SDKs
    Replies: 1
    Last Post: May 2nd, 2012, 09:55 AM
  2. Replies: 2
    Last Post: August 22nd, 2011, 08:25 AM
  3. lightstreamer on https
    By ddhanis in forum General
    Replies: 3
    Last Post: December 15th, 2009, 09:45 AM
  4. Trying to run LS through Https / SSL
    By wmolde in forum Client SDKs
    Replies: 2
    Last Post: April 18th, 2007, 03:40 PM


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 03:42 PM.