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

Apps "Not trusted sever certificate" Error

Discussion in 'Android Development' started by jimmcdonagh, Feb 27, 2013.

  1. jimmcdonagh

    jimmcdonagh Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Nov 20, 2012

    Nov 20, 2012
    5
    0
    5
    Male
    Student of Computer Science
    Dublin, Ireland
    Hi, I'm currently trying to write a basic program that can parse json code which is generated by a php file saved on a server. The server is a HTTPS sever and I'm getting the following error.

    I know where to get the ssl certificate for the server but even with it installed on my machine (on which i test the code on an emulator) , I still get the following error:

    javax.net.ssl.sslexception: not trusted server certificate

    Is there any way I can get the app to trust the sever specifically or get the app to trust all servers regardless of certificates.

    (Whichever would be easier)
     

    Advertisement

  2. ericlawson932

    ericlawson932 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    May 28, 2013

    May 28, 2013
    3
    0
    5

Share This Page

Loading...