Results 1 to 3 of 3
  1. #1

    Connection Error - Android API

    Hi,


    When Im trying to connect to my server, Im receiving an PushConnException:


    Code:
    client.openConnection(this.info,new LSConnectionListener(this.phase));
    "javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found."

    There is a TrustManager used by the lightstreamer connector? Where can I set my cert to be trusted?

    Thank you all!

    --Edit
    I've found the file HttpProvider, and I tried to add my TrustManager into the method:
    Code:
    private HttpURLConnection sendPost() throws Throwable
    But it's not working.
    Last edited by marcosmiguez; January 6th, 2017 at 09:44 PM.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    538
    Hi Marcos,

    First, please could you confirm that in the server you have configured a self-signed certificate? Otherwise you should not have any issue with https connections.

    However, if in your test or development environment you want to use a self-certificate you should override the default trust store and specify your own trust store.

    Please you could also refer to:
    - http://stackoverflow.com/questions/4...android-device
    - http://stackoverflow.com/questions/9...r-even-after-c
    - http://stackoverflow.com/questions/3...id-trust-store

    Regards,
    Giuseppe

  3. #3
    Giuseppe, thank you!

    It worked perfecly. I was using a self-signed certificate.

    Thank you!
    Last edited by marcosmiguez; January 10th, 2017 at 01:02 AM.

 

 

Similar Threads

  1. Replies: 2
    Last Post: March 4th, 2014, 09:23 AM
  2. Android browser --> SSL and error 39
    By Mone in forum Client APIs
    Replies: 0
    Last Post: February 21st, 2011, 04:16 PM
  3. Replies: 1
    Last Post: March 25th, 2010, 09:04 AM
  4. Connection reset error
    By gshatkin in forum Adapter APIs
    Replies: 4
    Last Post: January 9th, 2009, 10:28 AM

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:14 PM.