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

Discussion in 'B4J Code Snippets' started by Erel, Jul 16, 2017.

  1. Erel

    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.

    Code:
    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()))
     
  2. Gnappos

    Gnappos Member Licensed User

    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?
     
  3. Erel

    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.
     
    Gnappos likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice