我正在使用自签名证书运行Vault。 以下是我的config.hcl配置:
ui=true
disable_mlock = true
storage "file" {
path = "./vault-data"
}
listener "tcp" {
address = "127.0.0.1:8200"
#tls_disable = 1
tls_cert_file = "cert.crt",
tls_key_file="cert.key"
#tls_cert_file = "cert.pem",
#tls_key_file="key.pem"
tls_skip_verify=true
tls_require_and_verify_client_cert="false"
tls_disable_client_certs="true"
VAULT_SKIP_VERIFY=true
}
在Spring Boot中,我使用的Spring-vault-core依赖版本为:1.1.3.RELEASE。
从Spring调用Vault服务器时,出现以下错误:
由以下原因引起:java.security.cert.CertificateException:没有使用者替代名称
即使我在Spring中为此自签名证书配置了密钥库和信任库,该错误仍然会出现。
我该如何解决这个问题?