IBM MobileFirst HTTPS 问题
IBM MobileFirst HTTPS issue
目前我们的后端服务器(7.1)已经使用SSL设置,我们已经设法通过HTTPS访问操作控制台和应用程序中心控制台没有任何问题。
但是在应用程序中,每当应用程序启动时都会抛出连接失败错误。该应用程序已使用 HTTPS 协议重建以连接到后端。使用 HTTP 的旧版本运行良好。
我们从日志中找到了这一行:
Response Error : An SSL error has occurred and a secure connection to the server cannot be made.
经过一番搜索后,我发现这个 指出问题是由 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 文件中将现有的 NSAppTransportSecurity 密钥替换为:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
问题会得到解决。
编辑:
如果您能够在服务器上启用 SSL,请遵循此文档:
您需要将以下配置添加到您的 info.plist:
<key>protocol</key>
<string>https</string>
<key>port</key>
<string>10443</string>
端口将是您的防火墙端口
目前我们的后端服务器(7.1)已经使用SSL设置,我们已经设法通过HTTPS访问操作控制台和应用程序中心控制台没有任何问题。
但是在应用程序中,每当应用程序启动时都会抛出连接失败错误。该应用程序已使用 HTTPS 协议重建以连接到后端。使用 HTTP 的旧版本运行良好。
我们从日志中找到了这一行:
Response Error : An SSL error has occurred and a secure connection to the server cannot be made.
经过一番搜索后,我发现这个
按照指示设置服务器后,我重新启动了服务器并重试。改为获取以下问题:
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 文件中将现有的 NSAppTransportSecurity 密钥替换为:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
问题会得到解决。
编辑:
如果您能够在服务器上启用 SSL,请遵循此文档:
您需要将以下配置添加到您的 info.plist:
<key>protocol</key>
<string>https</string>
<key>port</key>
<string>10443</string>
端口将是您的防火墙端口