"No peer certificate" android application

user1071138 picture user1071138 · Dec 4, 2011 · Viewed 11k times · Source

i'm working on an application for android devices( 2.2). I'm trying to get an html page.The java code I use seems to work, so I can obtain the page I want, but sometimes the app crashes and i get the exception: "no peer certificate". When this happens, if I wait one hour or I change network, it works normally. Does someone know how to solve this? The site is https://stud.infostud.uniroma1.it/Sest/Log/

I'm really sorry about my english, I hope you'll understand!

Answer

Tyler picture Tyler · Apr 26, 2012

When I was getting that exception it was because my phones date was not correctly set. I just switched back to using the network provided date and everything worked.