首页 > 解决方案 > 使用 Spring-Boot 的 Apache Camel 全局 SSL 配置

问题描述

我正在努力让全局 SSL 配置正常工作。我在 Spring Boot 中运行 Apache Camel。似乎 application.yml 中的配置被忽略了。不创建 SSL 上下文,并且忽略 http 组件的 use-global-ssl-context-parameter。

版本

pom中包含的依赖项:

配置(application.yml)

camel: # To enable global SSL in undertow component: http: use-global-ssl-context-parameters: true ssl: config: key-managers: key-password: "changeit" key-store: resource: "/keystore.p12" password: "changeit" type: "PKCS12" trust-managers: key-store: resource: "/cacerts" password: "changeit" type: "jks"

这是一个专门为测试全局 SSL 上下文创建而创建的干净项目。

看来我在某处错过了一步?

协助表示赞赏。

标签: spring-bootapache-camel

解决方案


更换 camel-http 组件 camel-http4 解决了这个问题。我的理解是不推荐使用camel-http。


推荐阅读