I have this problem with HTTPS requests on android - No peer certificate. I've mentioned that Google are flood with people's question about this problem. Sad enough that NONE of that question has answer which works for me.
But at least I want to know a cause of that error. I couldn't even find what is it - peer certificate. And when that error could appear? I have error even on normal secured sites which has valid certificate. Why is it invalid when doing request from android?
P.S. I don't want to see answers like "you should trust all certificates". No, I shouldn't. I want my application act like normal browser which works silently when certificate is valid otherwise notify user about certificate problem.