Android C2DM: Could not verify SSL certificate javax.net.ssl.SSLHandshakeException?

You need to use HttpsURLConnection instead of HttpURLConnection AFAIK HttpURLConnection doesn't verify hostnames.

You need to use HttpsURLConnection instead of HttpURLConnection. AFAIK, HttpURLConnection doesn't verify hostnames.

Unfortunately App Engine does not support HttpsURLConnection. I tried using the technique described in here, namely using java.net. URI prior to java.net.

URL, but the SSLHandshakeException remains. – ntaj May 5 at 10:18.

If you are in the testing phase, you could use the non-secure url to push a notification. android.apis.google.com/c2dm/send I also got around this issue by adding a certificate validation callback to accept any certificate, but this was on a C# server. I'm sure there is a Java equivalent for this.In production code you would want to verify the correct certificate or maybe just encrypt the data you are sending.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions