MarkusR Well-Known Member Licensed User Longtime User Aug 20, 2018 #1 hello, how to make this example b4j network here work with ssl? https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/ i set the server into listen after a button click. if me click connect from "client" the server show a connect but the client stay in status disconnected. the client get a connection reset in LastException Code: Copy 'client.Initialize("client") client.InitializeSSL("client",Null,"") '< my try i just need a simple encryption for data transport because the connection i will make from phone via internet connection. i will send "type" data between a desktop app and android app. Last edited: Aug 20, 2018
hello, how to make this example b4j network here work with ssl? https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/ i set the server into listen after a button click. if me click connect from "client" the server show a connect but the client stay in status disconnected. the client get a connection reset in LastException Code: Copy 'client.Initialize("client") client.InitializeSSL("client",Null,"") '< my try i just need a simple encryption for data transport because the connection i will make from phone via internet connection. i will send "type" data between a desktop app and android app.
OliverA Expert Licensed User Longtime User Aug 20, 2018 #2 Erel said: You can also use InitializeSSLAcceptAll method to accept all certificates automatically. This method is less secure and should be mainly used for testing. Click to expand... I think you need to use that method on the client unless you have an actuall (non-self signed) SSL certificate. Source: https://www.b4x.com/android/forum/threads/network-v1-50-adds-support-for-ssl-sockets.55871/#content Upvote 0
Erel said: You can also use InitializeSSLAcceptAll method to accept all certificates automatically. This method is less secure and should be mainly used for testing. Click to expand... I think you need to use that method on the client unless you have an actuall (non-self signed) SSL certificate. Source: https://www.b4x.com/android/forum/threads/network-v1-50-adds-support-for-ssl-sockets.55871/#content
MarkusR Well-Known Member Licensed User Longtime User Aug 20, 2018 #3 I think you need to use that method on the client unless you have an actuall (non-self signed) SSL certificate. Click to expand... hmm the b4j version did not have InitializeSSLAcceptAll me tested the network between b4j and b4j desktop app first. my end constellation should be windows app connected to linux app (its the same app act as client or server) android app connected to windows/linux app Upvote 0
I think you need to use that method on the client unless you have an actuall (non-self signed) SSL certificate. Click to expand... hmm the b4j version did not have InitializeSSLAcceptAll me tested the network between b4j and b4j desktop app first. my end constellation should be windows app connected to linux app (its the same app act as client or server) android app connected to windows/linux app
Erel B4X founder Staff member Licensed User Longtime User Aug 21, 2018 #4 Is this a B4J or B4A question? Upvote 0
MarkusR Well-Known Member Licensed User Longtime User Aug 21, 2018 #5 Erel said: Is this a B4J or B4A question? Click to expand... i put it here by mistake (sorry ) but the b4x examples was in b4a. currently my ssl problem is related to b4j at pc. i attached my test project. i make the jar in release then i started it 2x at pc, in one app i click the start listen button. then i try to send a message. after searching here in forum maybe i will switch my project into WebSockets. Attachments B4J_Network_Project.zip B4J_Network_Project.zip 6.7 KB · Views: 636 Last edited: Aug 21, 2018 Upvote 0
Erel said: Is this a B4J or B4A question? Click to expand... i put it here by mistake (sorry ) but the b4x examples was in b4a. currently my ssl problem is related to b4j at pc. i attached my test project. i make the jar in release then i started it 2x at pc, in one app i click the start listen button. then i try to send a message. after searching here in forum maybe i will switch my project into WebSockets.
Erel B4X founder Staff member Licensed User Longtime User Aug 22, 2018 #6 It will not work as ServerSocket accepts non-SSL connections. Build a real server with jServer instead. Upvote 0
It will not work as ServerSocket accepts non-SSL connections. Build a real server with jServer instead.
MarkusR Well-Known Member Licensed User Longtime User Aug 22, 2018 #7 ok, i found a example WebAppHelloWorld its possible to mix a gui app with jServer ? Upvote 0
OliverA Expert Licensed User Longtime User Aug 22, 2018 #8 At this point in time, no (see https://www.b4x.com/android/forum/threads/websocket-crash-in-release-mode.95329/#post-602538). Upvote 0
At this point in time, no (see https://www.b4x.com/android/forum/threads/websocket-crash-in-release-mode.95329/#post-602538).
MarkusR Well-Known Member Licensed User Longtime User Aug 22, 2018 #9 aha, but what is the reasion that it not work in a b4j gui app? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 23, 2018 #10 You should start a new thread for a new question. Upvote 0