Hi,
I'm a begginer in secured sockets programming and I'm trying to create
a TLS socket. I managed to successfully connect the socket to my
server in a desktop environment, however, when I try to use the same
source code in a android environment, I get the following exception :
java.io.IOException: SSL handshake failure: Failure in SSL library,
usually a protocol error
error: 140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol (external/openssl/ssl/s23_clnt.c:585 0xaf589b
It seems to me that the handshake failed after the client sent his
Hello and that the server is replying that he uses SSL23.
I googled this problem, but the only thing I found is this (http://
groups.google.com/group/android-developers/browse_thread/thread/
6f889519db988fea/664ef20f38ada638?
hl=en&lnk=gst&q=ssl23#664ef20f38ada638) and nobody replied to the
thread...
Here is my source code (I also tried to force TLS, using
SSLContext.getInstance("TLS"); but without any success) :
SocketFactory lSocketFactory = SSLSocketFactory.getDefault();
SSLSocket lSocket = (SSLSocket)lSocketFactory.createSocket
("talk.google.com", 5222);
lSocket.startHandshake();
I someone could give me some hints about this, I would really be
grateful.
Thank you, and sorry for my bad english.
--
David
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en