spring-projects / spring-vault

Provides familiar Spring abstractions for HashiCorp Vault
https://spring.io/projects/spring-vault
Apache License 2.0
283 stars 186 forks source link

disable SSL verification in Spring Vault #709

Closed Nidhi-Tanwar14 closed 2 years ago

Nidhi-Tanwar14 commented 2 years ago

It will help in quick unit testing

Nidhi-Tanwar14 commented 2 years ago

As of now, getting following exception:- Cannot login using org.springframework.web.client.ResourceAccessException: I/O error on POST request for : PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target org.springframework.vault.authentication.VaultLoginException: Cannot login using org.springframework.web.client.ResourceAccessException: I/O error on POST request for : PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Nidhi-Tanwar14 commented 2 years ago

RestTemplate can give any of the below error if SSL certificate of the target host is not valid:

mp911de commented 2 years ago

Please use plaintext. We do not plan to disable SSL verification.