Twitter.com SSL Certificate fails in Android 2.1


#1

I have an Android app that opens a WebView to login to Twitter, suing http://twitter.com/oauth/authenticate?oauth_token=xxx
The last navigation is to https://twitter.com/oauth/authenticate.
Unfortunately, the SSL certificate for twitter.com is rejected by Android 2.1 because “The certificate is not from a trusted authority”.
You can see it by navigating to “https://twitter.com” using an Android 2.1 device. it works fine on Android 2.2

Is there a different OAuth login endpoint that works in Android 2.1?

Thanks,
Raviv


#2

Hi Raviv,

First make sure that you’re using api.twitter.com when using the /oauth/* steps.

We haven’t otherwise seen issues connecting to api.twitter.com over SSL on Android. The certificate recently changed, as you can read about in this thread: [node:533]. Do you see the same behavior when you use api.twitter.com?


#3

Ive seen this problem when the explorer wasnt updated.


#4

Hi Taylor,

Using “api.twitter.com” did the trick.

Thanks.


#5

Hi Taylor,

Even though i am implemented twitter application using your application then it’s giving fallowing errors in my logcat. I am not understanding what type of errors those are. Log cat errors are

04-21 02:15:00.202: E/AndroidRuntime(676): FATAL EXCEPTION: main
04-21 02:15:00.202: E/AndroidRuntime(676): java.lang.VerifyError: net.jjc1138.android.twitter.Fetcher$FetcherThread
04-21 02:15:00.202: E/AndroidRuntime(676): at net.jjc1138.android.twitter.Fetcher.onStart(Fetcher.java:146)
04-21 02:15:00.202: E/AndroidRuntime(676): at android.app.Service.onStartCommand(Service.java:420)
04-21 02:15:00.202: E/AndroidRuntime(676): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3053)
04-21 02:15:00.202: E/AndroidRuntime(676): at android.app.ActivityThread.access$3600(ActivityThread.java:125)
04-21 02:15:00.202: E/AndroidRuntime(676): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2096)
04-21 02:15:00.202: E/AndroidRuntime(676): at android.os.Handler.dispatchMessage(Handler.java:99)
04-21 02:15:00.202: E/AndroidRuntime(676): at android.os.Looper.loop(Looper.java:123)
04-21 02:15:00.202: E/AndroidRuntime(676): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-21 02:15:00.202: E/AndroidRuntime(676): at java.lang.reflect.Method.invokeNative(Native Method)
04-21 02:15:00.202: E/AndroidRuntime(676): at java.lang.reflect.Method.invoke(Method.java:521)
04-21 02:15:00.202: E/AndroidRuntime(676): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-21 02:15:00.202: E/AndroidRuntime(676): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-21 02:15:00.202: E/AndroidRuntime(676): at dalvik.system.NativeStart.main(Native Method)

Thanks,
Murali.