将cxf-spring-boot-starter-jaxrs与TLS一起使用会产生证书未知错误

问题描述 投票:0回答:1

如果我将以下Maven依赖项与TLS结合使用,那么我会收到证书未知错误。:

<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个回答
0
投票
我可以验证问题。

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

在将cxf.xml明确导入到我的spring配置中之后,问题解决了。

© www.soinside.com 2019 - 2024. All rights reserved.