Hi,
I am connecting to a TCP device in the field, and it uses an older version of SSL.
I used the following code:
When I run this code it works fine (has worked fine for over 8 or so years).
Now all of a sudden it has stopped working.
The error I am getting is:
java.lang.IllegalArgumentException: protocol SSLv3 is not supported
I am testing this on a Pixel 8, running Android 14. (Security update 5 August 2024).
I am not sure if it's related to an Android OS update (or security patch) causing it to not work, or if I need to change something in my code to make it work?
I am connecting to a TCP device in the field, and it uses an older version of SSL.
I used the following code:
B4X:
Dim so As Socket
so.InitializeSSLAcceptAll("so")
Dim r As Reflector
r.Target = so 'socket variable
r.Target = r.GetField("socket")
r.RunMethod4("setEnabledProtocols", Array(Array As String("TLSv1", "SSLv3")), _
Array As String("[Ljava.lang.String;"))
so.Connect(IP, port,5000)
wait for so_Connected (Successful As Boolean)
Log(Successful)
When I run this code it works fine (has worked fine for over 8 or so years).
Now all of a sudden it has stopped working.
The error I am getting is:
java.lang.IllegalArgumentException: protocol SSLv3 is not supported
I am testing this on a Pixel 8, running Android 14. (Security update 5 August 2024).
I am not sure if it's related to an Android OS update (or security patch) causing it to not work, or if I need to change something in my code to make it work?