1. Download our Official Android App: Forums for Android!

Apps valid ssl throwing an 'expired ssl' error using http client. workaround?

Discussion in 'Android Development' started by jfisher446, Feb 5, 2010.

  1. jfisher446

    jfisher446 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Feb 5, 2010

    Feb 5, 2010
    1
    0
    5
    I'm trying to connect to a website via httpclient and it keeps throwing an error that says the SSL certificate is not trusted/expired. This happens in the emulator dev environment and on the phone when I visit the site in a browser.

    I can't find any way to work around this but I've seen some information saying that I need to create a fake TrustManager and then basically pass a fake certificate to me httpclient to make it think the site's is valid.

    Anyone have any other suggestions to work around this thing or some detailed information on how I can get the TrustManager thing working as it should as I simply can't figure it out.

    Thanks,
    John
     

    Advertisement

Share This Page

Loading...