【问题标题】:How to make a HTTPS call with the HTTP connector?如何使用 HTTP 连接器进行 HTTPS 调用?
【发布时间】:2014-12-31 15:57:35
【问题描述】:

使用 mule 中 HTTP 组件的证书进行 HTTPS 调用的最佳方法是什么?到目前为止,我正在使用 mule 的 HTTP 组件中可用的安全选项卡。HTTP 组件中可用的安全选项卡是唯一的方法吗?或者我们还有其他选择吗?

【问题讨论】:

    标签: mule esb mule-studio mule-component


    【解决方案1】:

    TLS/SSL 是一个复杂的主题,需要了解安全算法、密钥库、来自 Java 的密钥环管理工具和 Mule 本身。

    您确实提到了简单的解决方案,使用 Mule Studio 将涵盖 99% 的情况。除了reference 之外,我确实推荐以下reading 以更好地了解如何执行https 调用。

    【讨论】:

      【解决方案2】:

      我们可以创建一个 HTTP-HTTPS 全局元素,并在安全选项卡中输入我们的密钥库位置、storePassword 和 keyPassword。稍后,我们可以在 HTTP Endpoint 中启用 HTTPS,并引用之前创建的 HTTPS 全局元素。

      <https:connector name="HTTP_HTTPS" cookieSpec="netscape" validateConnections="true" sendBufferSize="0" receiveBufferSize="0" receiveBacklog="0" clientSoTimeout="10000" serverSoTimeout="10000" socketSoLinger="0" doc:name="HTTP-HTTPS">
              <https:tls-key-store path="\your path\.keystore" keyPassword="password" storePassword="password"/>
          </https:connector>
      <https:outbound-endpoint exchange-pattern="request-response" method="GET" address="https://.." doc:name="HTTP"  transformer-refs="Message_Properties" connector-ref="HTTP_HTTPS"/>

      【讨论】:

        猜你喜欢
        • 2021-10-24
        • 2011-06-29
        • 2023-03-26
        • 2017-08-31
        • 2016-03-05
        • 2014-03-17
        • 1970-01-01
        • 2013-03-25
        • 2020-11-07
        相关资源
        最近更新 更多