Something like http://stackoverflow.com/questions/2012497/accepting-a-certificate-for-https-on-android
On Friday, March 8, 2013 11:46:27 AM UTC-5, askl wrote: > > Hi friends, > already i've access HTTP. But i can't access HTTPS protocol base server. > How can i access php files on HTTPS protocol server using JSON. > > *here is the error message* > 03-08 21:34:56.804: W/System.err(366): javax.net.ssl.SSLException: Not > trusted server certificate > 03-08 21:34:56.814: W/System.err(366): at > org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:371) > 03-08 21:34:56.814: W/System.err(366): at > org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:92) > 03-08 21:34:56.814: W/System.err(366): at > org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:381) > 03-08 21:34:56.814: W/System.err(366): at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:164) > 03-08 21:34:56.824: W/System.err(366): at > org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) > 03-08 21:34:56.824: W/System.err(366): at > org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) > 03-08 21:34:56.824: W/System.err(366): at > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348) > 03-08 21:34:56.834: W/System.err(366): at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) > 03-08 21:34:56.834: W/System.err(366): at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) > 03-08 21:34:56.843: W/System.err(366): at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465) > > 03-08 21:34:56.854: W/System.err(366): at > android.os.AsyncTask$2.call(AsyncTask.java:185) > 03-08 21:34:56.884: W/System.err(366): at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) > 03-08 21:34:56.884: W/System.err(366): at > java.util.concurrent.FutureTask.run(FutureTask.java:137) > 03-08 21:34:56.904: W/System.err(366): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) > 03-08 21:34:56.904: W/System.err(366): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) > 03-08 21:34:56.924: W/System.err(366): at > java.lang.Thread.run(Thread.java:1096) > 03-08 21:34:56.934: W/System.err(366): Caused by: > java.security.cert.CertificateException: > java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not > found. > 03-08 21:34:56.944: W/System.err(366): at > org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:168) > 03-08 21:34:56.944: W/System.err(366): at > org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:366) > 03-08 21:34:56.955: W/System.err(366): ... 18 more > 03-08 21:34:56.955: W/System.err(366): Caused by: > java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not > found. > 03-08 21:34:56.984: W/System.err(366): at > org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:149) > 03-08 21:34:56.994: W/System.err(366): at > java.security.cert.CertPathValidator.validate(CertPathValidator.java:202) > 03-08 21:34:56.994: W/System.err(366): at > org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:164) > 03-08 21:34:57.004: W/System.err(366): ... 19 more > 03-08 21:34:57.004: E/Buffer Error(366): Error converting result > java.lang.NullPointerException > 03-08 21:34:57.015: E/JSON Parser(366): Error parsing data > org.json.JSONException: End of input at character 0 of > > thank u > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

