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

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()))
 

Gnappo jr

Active Member
Licensed User
Longtime 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?
 
Top