使用 wlclient 库从本机 Android 应用程序到 Worklight 服务器的 TLS1.2 连接
TLS1.2 connection from native Android app to Worklight server using wlclient library
我正在使用 wlclient.jar 从 Android 本机应用程序连接到 Worklight 服务器,但我的要求是仅建立 TLS1.2 连接。我没有在 wlclient.jar 中找到任何提及 TLS1.2 作为安全级别的 API。定制 wlclient.jar 是唯一的选择吗?如果是,我需要做哪些改变?
此问题已成为 MobileFirst Platform Foundation 7.1 的 APAR(支持票):PI64093: APPS ON ANDROID VERSIONS 4.4.2 AND EARLIER CANNOT CONNECT TO SERVER USING HTTPS IF ONLY TLS 1.2 IS ENABLED。
解决方法(来自 APAR 描述):
In the native Android code of the MobileFirst Platform hybrid
application, in the "onCreate()" method in the application's
main activity, it is possible to replace the default
SSLSocketFactory provided by Android with one that enables TLS
1.2, immediately after the call to "WL.createInstance(this)",
in order to accommodate the use of TLS 1.2 with Android
versions 4.4.2 and earlier. Specific steps and code to
accomplish this are beyond the scope of this APAR.
现在可以从 IBM Fix Central 下载 iFix。
The issue is resolved by programmatically enabling TLS on
Android devices with OS <4.2.
我正在使用 wlclient.jar 从 Android 本机应用程序连接到 Worklight 服务器,但我的要求是仅建立 TLS1.2 连接。我没有在 wlclient.jar 中找到任何提及 TLS1.2 作为安全级别的 API。定制 wlclient.jar 是唯一的选择吗?如果是,我需要做哪些改变?
此问题已成为 MobileFirst Platform Foundation 7.1 的 APAR(支持票):PI64093: APPS ON ANDROID VERSIONS 4.4.2 AND EARLIER CANNOT CONNECT TO SERVER USING HTTPS IF ONLY TLS 1.2 IS ENABLED。
解决方法(来自 APAR 描述):
In the native Android code of the MobileFirst Platform hybrid application, in the "onCreate()" method in the application's main activity, it is possible to replace the default SSLSocketFactory provided by Android with one that enables TLS 1.2, immediately after the call to "WL.createInstance(this)", in order to accommodate the use of TLS 1.2 with Android versions 4.4.2 and earlier. Specific steps and code to accomplish this are beyond the scope of this APAR.
现在可以从 IBM Fix Central 下载 iFix。
The issue is resolved by programmatically enabling TLS on Android devices with OS <4.2.