- Jun 6, 2020
- 11,559
- 4,422
Hello everyone.
I'm having a problem getting a secure websocket connection (B4J client to B4J server) to connect consistently....
Based on the various examples in the forum, I've merged the
That works fine.
I'm now been trying to change it to use secure connections (https and wss) using a self-signed certificate based on the info in:
[H3]
Starting from B4J v2.00 the server can listen to two ports, the standard insecure port (http) and a secure port (https). The default port for http is 80 and for https is 443. These ports are used when the url doesn't explicitly specify a port number. It is recommended to go over the Wikipedia...
[H3]
Dear All, As requested by Erel in:
[H3]
Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library. jOkHttpUtils2_NONUI was required as a special version for non-ui B4J apps. It is no longer required and shouldn't be used. Starting from v2.90 it is very simple to initialize the internal http client...
When not using SSL the connection from the client app to the RDC app via https & wss is established OK every time.
But when using SSL, the websocket connection errors...
I'm having a problem getting a secure websocket connection (B4J client to B4J server) to connect consistently....
Based on the various examples in the forum, I've merged the
برای دیدن لینک ها باید ثبت نام کنید
with the
برای دیدن لینک ها باید ثبت نام کنید
created by @OliverA, and created a client B4J app to connect to it using Basic Authentication.That works fine.
I'm now been trying to change it to use secure connections (https and wss) using a self-signed certificate based on the info in:
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Starting from B4J v2.00 the server can listen to two ports, the standard insecure port (http) and a secure port (https). The default port for http is 80 and for https is 443. These ports are used when the url doesn't explicitly specify a port number. It is recommended to go over the Wikipedia...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Dear All, As requested by Erel in:
برای دیدن لینک ها باید ثبت نام کنید
.. here´s a new thread on this topic. Issue: the WebSocketClient library in b4j does not have an option to bypass certificate security check as it´s the case...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library. jOkHttpUtils2_NONUI was required as a special version for non-ui B4J apps. It is no longer required and shouldn't be used. Starting from v2.90 it is very simple to initialize the internal http client...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
When not using SSL the connection from the client app to the RDC app via https & wss is established OK every time.
But when using SSL, the websocket connection errors...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید