B4J Code Snippet jServer v2.80+ Enabling TLSv1.1

Erel

Administrator
Staff member
Licensed User
TLS v1.1 is disabled in the latest version of jServer, as it is disabled in the underlying Jetty SDK.
It is considered a weak protocol and should be kept disabled in most cases.

However if you need to access the server with an old client then you might need to enable it.

This is done by adding these three lines to ConfigureSSL: https://www.b4x.com/android/forum/threads/server-ssl-connections.40130/#content before the call to srvr.SetSslConfiguration.

B4X:
Dim jo As JavaObject = ssl
jo.RunMethod("setIncludeCipherSuites", Array(Array As String("TLS_RSA_WITH_AES_128_CBC_SHA")))
jo.RunMethod("setExcludeCipherSuites", Array(Array As String()))
 

Gnappos

Member
Licensed User
TLS v1.1 is disabled in the latest version of jServer, as it is disabled in the underlying Jetty SDK.
It is considered a weak protocol and should be kept disabled in most cases.

However if you need to access the server with an old client then you might need to enable it.

This is done by adding these three lines to ConfigureSSL: https://www.b4x.com/android/forum/threads/server-ssl-connections.40130/#content before the call to srvr.SetSslConfiguration.

B4X:
Dim jo As JavaObject = ssl
jo.RunMethod("setIncludeCipherSuites", Array(Array As String("TLS_RSA_WITH_AES_128_CBC_SHA")))
jo.RunMethod("setExcludeCipherSuites", Array(Array As String()))
I humbly apologize, I can not find the jserver v 2.80 library Where is this library located? How do I have to make sure I do not go crazy every time to look for libraries that are not found?
 

Erel

Administrator
Staff member
Licensed User
You cannot find it because it is an internal library and is already included in the IDE. Make sure to always use the latest version of B4J and you will have the latest versions of all internal libraries.
 
Top