www.google.com Not verified: Android.

15 views
Skip to first unread message

Mahavir

unread,
Apr 30, 2011, 2:21:11 AM4/30/11
to google-api-java-client
Hi,

I am trying out google calendar sample for android platform.

I have added required jar files in the class path and also have
required permissions in Android Manifest file.

Its authenticating my account (Authentication working properly). But
after authentication, when it try to fetch calendars by calling
executeRefreshCalendar(), it throws IOException with message, www.google.com
not verified.

What can be the issue?? Have anyone encoutered with the same before?

Regards,
Mahavir Jain

hjrnunes

unread,
May 10, 2011, 6:14:47 PM5/10/11
to google-api-java-client
Yes, I had this issue too. It seems to be a problem with SSL. I
managed to overcome this by using regular http instead of https in the
api requests. But I didn't need authentication in my app, so that
might be a problem for you.

Best,
H

Mike

unread,
May 11, 2011, 5:56:24 PM5/11/11
to google-api-...@googlegroups.com
I'm not sure I've seen this but I used to get a whole lot of SSL exceptions which I catch using

if (e instanceof SSLPeerUnverifiedException)

Is that what you're seeing?


Mike 

Mahavir Jain

unread,
May 11, 2011, 11:36:55 PM5/11/11
to google-api-...@googlegroups.com

By default, accessing an HTTPS URL using the URL class results in an exception if the server's certificate cannot be validated. (On emulator)

One need to disable certificate validation in an HTTPS Connection. To know how to disable certificate validation, follow this link

Mahavir

Reply all
Reply to author
Forward
0 new messages