jmon Well-Known Member Licensed User Longtime User Mar 7, 2016 #1 Hello, My server is very similar to this example (https://www.b4x.com/android/forum/threads/simple-multi-user-chat-demo.35996/). I am trying to switch to SSL, but I have no clue on how to do it. If I change this line (141 in the SimpleClient): B4X: sckServer.Initialize("sckServer") to: B4X: sckServer.InitializeSSL("sckServer", null, "") I have 2 errors : javax.net.ssl.exception: Unrecognized SSL Message, plaintext connection? Click to expand... and java.lang.UnsupportedOperationException: The method shutdownImput() is not supported in SSLSocket Click to expand... Thank you for your help Jmon.
Hello, My server is very similar to this example (https://www.b4x.com/android/forum/threads/simple-multi-user-chat-demo.35996/). I am trying to switch to SSL, but I have no clue on how to do it. If I change this line (141 in the SimpleClient): B4X: sckServer.Initialize("sckServer") to: B4X: sckServer.InitializeSSL("sckServer", null, "") I have 2 errors : javax.net.ssl.exception: Unrecognized SSL Message, plaintext connection? Click to expand... and java.lang.UnsupportedOperationException: The method shutdownImput() is not supported in SSLSocket Click to expand... Thank you for your help Jmon.
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2016 #2 Why aren't you creating a real server solution? It will be much simpler and will work better. javax.net.ssl.exception: Unrecognized SSL Message, plaintext connection? Click to expand... Seems like you are connecting with a regular socket instead of a SSLSocket. Upvote 0
Why aren't you creating a real server solution? It will be much simpler and will work better. javax.net.ssl.exception: Unrecognized SSL Message, plaintext connection? Click to expand... Seems like you are connecting with a regular socket instead of a SSLSocket.
jmon Well-Known Member Licensed User Longtime User Mar 8, 2016 #3 Erel said: Why aren't you creating a real server solution Click to expand... I think it's because I built my server with one of the first versions of B4j, and never switched to the newest solutions. I guess I will do that, and change my code. Thank you. Upvote 0
Erel said: Why aren't you creating a real server solution Click to expand... I think it's because I built my server with one of the first versions of B4j, and never switched to the newest solutions. I guess I will do that, and change my code. Thank you.
Ed Brown Active Member Licensed User Longtime User Mar 23, 2016 #4 Erel said: Why aren't you creating a real server solution? Click to expand... What do you mean by 'real server solution'? Is there a better way to develop a server app where clients need to connect using sockets? Upvote 0
Erel said: Why aren't you creating a real server solution? Click to expand... What do you mean by 'real server solution'? Is there a better way to develop a server app where clients need to connect using sockets?
Erel B4X founder Staff member Licensed User Longtime User Mar 23, 2016 #5 Ed Brown said: What do you mean by 'real server solution'? Click to expand... A server implemented based on jServer library (rather than working with raw sockets). Upvote 0
Ed Brown said: What do you mean by 'real server solution'? Click to expand... A server implemented based on jServer library (rather than working with raw sockets).