【问题标题】:Using cxf-spring-boot-starter-jaxrs WebClient with TLS produces Certificate Unknown Error将 cxf-spring-boot-starter-jaxrs WebClient 与 TLS 一起使用会产生证书未知错误
【发布时间】:2020-04-02 09:26:33
【问题描述】:

如果我将以下 maven 依赖项与 TLS 结合使用,则会收到 Certificate Unknown Error。:

<dependency>
    <groupId>org.apache.cxf</groupId>
    <type>pom</type>
    <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
    <version>3.1.12</version>
</dependency>

如果我使用以下 maven 依赖项,那么一切都会按预期工作。:

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-rs-client</artifactId>
    <version>3.1.12</version>
</dependency>

更糟糕的是,如果我添加以下依赖项,那么我会再次遇到相同的错误:

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
    <type>pom</type>
</dependency> 

我不确定,问题是什么,但也许某些 cxf-spring-boot 自动配置确实会产生问题?

【问题讨论】:

    标签: java cxf tls1.2


    【解决方案1】:

    我可以验证问题。

    不同之处在于 cxf.xml 配置在任何情况下都不会被使用。

    在我的spring配置中显式导入cxf.xml后,问题就解决了。

    【讨论】:

      猜你喜欢
      • 2019-08-26
      • 2019-10-28
      • 2020-10-15
      • 2016-10-31
      • 1970-01-01
      • 2021-09-10
      • 2019-05-30
      • 2016-01-29
      • 1970-01-01
      相关资源
      最近更新 更多