【发布时间】:2012-04-13 19:31:06
【问题描述】:
我有一系列使用在 ServiceMix (Fuse) 中运行的 Camel Jetty 组件公开的 Web 服务。比如:
<route>
<from uri="jetty:http://0.0.0.0:25100/service1"/>
...
</route>
<route>
<from uri="jetty:http://0.0.0.0:25100/service2"/>
...
</route>
我希望能够将它们更改为使用 https/ssl,但我需要能够为每条路由使用不同的密钥/证书。我查看了 Jetty 组件文档,它在描述如何全局配置 Jetty 组件以使用 SSL 方面做得不错,但似乎没有办法为不同的路由指定不同的证书?来自Jetty Component Documentation:
<bean id="jetty" class="org.apache.camel.component.jetty.JettyHttpComponent">
<property name="sslSocketConnectorProperties">
<properties>
<property name="password"value="..."/>
<property name="keyPassword"value="..."/>
<property name="keystore"value="..."/>
<property name="needClientAuth"value="..."/>
<property name="truststore"value="..."/>
</properties>
</property>
</bean>
每个路由可以使用不同的证书吗?
【问题讨论】:
-
jetty 在 7.2 的时间范围内增加了对此的支持我认为......在配置 ssl 上下文时,您可以指定一个别名,该别名将用于该 ssl 连接器上的密钥......这种支持是否有一直到骆驼我现在还不确定。最好与他们核实一下,而您的支持者则主张更新到更高的 7.6 版本以进行一些重要的 nio 和 ssl 修复
标签: ssl https apache-camel jetty apache-servicemix