B4J Question Switch to SSL connection

jmon

Well-Known Member
Licensed User
Longtime User
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?
and
java.lang.UnsupportedOperationException: The method shutdownImput() is not supported in SSLSocket

Thank you for your help
Jmon.
 

jmon

Well-Known Member
Licensed User
Longtime User
Why aren't you creating a real server solution
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
Top