IBM MobileFirst HTTPS问题

目前,我们的后端服务器(7.1)已经使用SSL进行设置,并且我们已经设法通过HTTPS访问操作控制台和应用程序中心控制台,没有任何问题。

然而,从应用程序,每当启动应用程序将抛出一个连接失败的错误。 该应用程序已被重build使用HTTPS协议连接到后端。 以前使用HTTP的版本运行良好。

从日志中我们发现这一行:

Response Error : An SSL error has occurred and a secure connection to the server cannot be made. 

经过一番search之后,我发现这个页面指出这个问题是由iOS ATS策略引起的,我需要根据Apple的标准设置SSL。

根据指示设置服务器后,我重新启动服务器,然后重试。 取而代之的是下面的问题:

 CWWKO0801E: Unable to initialize SSL connection. Unauthorized access was denied or security settings have expired. Exception is javax.net.ssl.SSLHandshakeException: no cipher suites in common 

我担心的是,自从应用程序,我们已经开启了ATS的任意负载,因此它不应该检查ATS设置。 为什么应用程序仍然抛出SSL错误?

在您的info.plist文件中,使用以下内容replace现有的NSAppTransportSecurity项:

 <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> 

该问题将得到解决。

编辑:

如果您能够在服务器上启用SSL,请按照以下文档操作:

http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.dev.doc/dev/t_enforce_TLS.html

您需要将以下configuration添加到您的info.plist中:

 <key>protocol</key> <string>https</string> <key>port</key> <string>10443</string> 

端口将是您的防火墙端口