Spring Cloud Vault错误:嵌套异常为javax.net.ssl.SSLHandshakeException:扩展名(5)不应出现在certificate_request中

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

我正在尝试通过Spring Boot项目上的Spring Cloud Vault使用HashiCorp Vault。我将bootstrap.yml文件配置为使用应用程序角色和秘密ID来获取密码

bootstrap.yml

spring:
  application:
    name: pres
  cloud:
    vault:
      authentication: APPROLE
      app-role:
        role-id: ${role-id}
        secret-id: ${secret-id}
        role: pres-read
        app-role-path: approle
      uri: https://hostname:8200
      kv:
        enabled: true
        backend: secret
        application-name: pres
  profiles:
    include: dev

在启动过程中出现以下异常

org.springframework.vault.authentication.VaultLoginException: Cannot login using org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://hostname:8200/v1/auth/approle/login": extension (5) should not be presented in certificate_request; nested exception is javax.net.ssl.SSLHandshakeException: extension (5) should not be presented in certificate_request

我正在使用spring-cloud-starter-vault-config依赖项来访问Vault

 <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-vault-config</artifactId>
            <version> 2.2.2.RELEASE</version>
 </dependency>

java spring spring-boot hashicorp-vault spring-cloud-vault-config
1个回答
0
投票

好。看来这是一个Java TLS Bug,希望Java小组能在Java 11.0.8中解决此问题。

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