A simple search would definitely give you some hints. Try those and come
back if you have any specific problem.

http://stackoverflow.com/questions/995514/https-connection-android

Mention a little  more about your implementation.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Jul 15, 2011 at 2:16 PM, Sapna Srivastav <[email protected]>wrote:

> Still no reply.
> Please help anyone. Its urgent.
>
> On Jul 12, 9:41 am, Sapna Srivastav <[email protected]> wrote:
> > Hi
> >
> > In my application, there is need ofSSLcertificateto add and make an
> > https connection in theandroidconnection.
> > I follow the steps from this link
> >  http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certifi.
> ..
> >
> > but get exception and the logcat is as:
> >
> > 07-12 04:35:47.683: INFO/System.out(219): exception
> > javax.net.ssl.SSLException: Not trusted servercertificate
> > 07-12 04:35:47.683: WARN/System.err(219): javax.net.ssl.SSLException:
> > Not trusted servercertificate
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(Open­SSLSocketImpl.java:
> > 360)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> > org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:
> > 92)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.ja­va:
> > 321)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(De­faultClientConnectionOperator.java:
> > 129)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> > org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
> > 164)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConn­Adapter.java:
> > 119)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDi­rector.java:
> > 348)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j­ava:
> > 555)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j­ava:
> > 487)
> > 07-12 04:35:47.703: WARN/System.err(219):     at
> >
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j­ava:
> > 465)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> > com.ariose.activity.SplashActivity.showImeiCheck(SplashActivity.java:
> > 80)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> > com.ariose.activity.SplashActivity
> > $ImeiCheckTask.doInBackground(SplashActivity.java:213)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> > com.ariose.activity.SplashActivity
> > $ImeiCheckTask.doInBackground(SplashActivity.java:1)
> > 07-12 04:35:47.712: WARN/System.err(219):     atandroid.os.AsyncTask
> > $2.call(AsyncTask.java:185)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> > java.util.concurrent.FutureTask.run(FutureTask.java:137)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
> > 1068)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> > java.util.concurrent.ThreadPoolExecutor
> > $Worker.run(ThreadPoolExecutor.java:561)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> > java.lang.Thread.run(Thread.java:1096)
> > 07-12 04:35:47.712: WARN/System.err(219): Caused by:
> > java.security.cert.CertificateException:
> > java.security.cert.CertPathValidatorException: TrustAnchor for
> > CertPath not found.
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> >
> org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(T­rustManagerImpl.java:
> > 168)
> > 07-12 04:35:47.712: WARN/System.err(219):     at
> >
> org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(Open­SSLSocketImpl.java:
> > 355)
> > 07-12 04:35:47.712: WARN/System.err(219):     ... 18 more
> > 07-12 04:35:47.712: WARN/System.err(219): Caused by:
> > java.security.cert.CertPathValidatorException: TrustAnchor for
> > CertPath not found.
> > 07-12 04:35:47.722: WARN/System.err(219):     at
> >
> org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXC­ertPathValidatorSpi.java:
> > 149)
> > 07-12 04:35:47.722: WARN/System.err(219):     at
> > java.security.cert.CertPathValidator.validate(CertPathValidator.java:
> > 211)
> > 07-12 04:35:47.722: WARN/System.err(219):     at
> >
> org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(T­rustManagerImpl.java:
> > 164)
> >
> > Kindly provide me the proper example or tutorial to establishssl
> > connection.
> >
> > Thanks and regards
> > Sapna Srivastav
>
> --
> 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 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

Reply via email to