在 JavaScript HTTP 适配器中使用 SSL

improve this page | report issue



您可以在 HTTP 适配器中使用 SSL,以通过使用简单认证和相互认证来连接到后端服务。
SSL 表示传输级别安全性,独立于基本认证。 能够通过 HTTP 或 HTTPS 实现基本认证。

  1. 在 adapter.xml 文件中,将 HTTP 适配器的 URL 协议设置为 https
  2. 将 SSL 证书存储到 MobileFirst Server 密钥库中。 请参阅“配置 MobileFirst Server 密钥库”

使用相互认证的 SSL

如果使用“使用相互认证的 SSL”,那么您还必须执行以下步骤:

  1. 为 HTTP 适配器生成自己的专用密钥,或使用可信的证书颁发中心提供的密钥。
  2. 如果您生成自己的专用密钥,请导出所生成专用密钥的公用证书,然后将其导入后端信任库。
  3. adapter.xml 文件的 connectionPolicy 元素中为专用密钥定义别名和密码。
Inclusive terminology note: The Mobile First Platform team is making changes to support the IBM® initiative to replace racially biased and other discriminatory language in our code and content with more inclusive language. While IBM values the use of inclusive language, terms that are outside of IBM's direct influence are sometimes required for the sake of maintaining user understanding. As other industry leaders join IBM in embracing the use of inclusive language, IBM will continue to update the documentation to reflect those changes.
Last modified on June 01, 2020