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 <[email protected]>wrote:
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[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