我需要实现对<int-http:outbound-gateway>的https支持。
以下是场景:
有一个<int-http:inbound-gateway>可以接受Spring集成的入站url。<int-http:inbound-gateway>和<int-http:outbound-gateway>的应答通道相同。入站请求基于HeaderValueRouter,从<int-http:inbound-gateway>的request-channel转发到<int-http:inbound-gateway>的request通道。现在,从出站url接收响应,并将其放入应答通道。<int-http:outbound-gateway>的url表达式是从MesssageHeader的"http_requestUrl“属性构建的。
现在,如果我在https中托管外部应用程序。我需要在<int-http:inbound-gateway>中进行什么配置才能在应答通道中获得响应
发布于 2015-02-25 23:19:01
实际上,这与Spring Integration for SSL没有任何关系。这是底层HTTP引擎的责任。而且,老实说,它甚至不依赖于RestTemplate的ClientHttpRequestFactory实现。
您只需要拥有服务器SSL证书并将其放入trustStore。也就是说,如果您的目标服务只需要信任-单向SSL。
如果您需要mutual SSL,您需要生成密钥并将其存储在您的keyStore中,并与服务器共享公共部分证书。
您可以在Java SSL文档中找到更多信息。
https://stackoverflow.com/questions/28722400
复制相似问题