[android-developers] SSL Certificate Installation Problem

2010-11-03 Thread Android Humanoid
Hi All,

when am accessing a web service am getting Not Trusted Server
Certificate error, For this should I install the certificate on the
mobile or system, or can I bypass this.

Thanks  Regards.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] SSL Certificate Installation Problem

2010-11-03 Thread saify.zeenwala
Hi

you can by-pass

but if you want to check certificate
then use the following code to store certificate in keystore

KeyStore trusted = KeyStore.getInstance(BKS);
  InputStream in = getResources().openRawResource(R.raw.cerrrt);
  trusted.load(in, ez24get.toCharArray());
 SSLSocketFactory SSLSF =  new SSLSocketFactory(trusted);

schemeRegistry.register(new Scheme(https, SSLSF, 443));

Regards

On Wed, Nov 3, 2010 at 1:35 PM, Android Humanoid droid.hu...@gmail.comwrote:

 Hi All,

 when am accessing a web service am getting Not Trusted Server
 Certificate error, For this should I install the certificate on the
 mobile or system, or can I bypass this.

 Thanks  Regards.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en