Closed Nidhi-Tanwar14 closed 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
RestTemplate can give any of the below error if SSL certificate of the target host is not valid:
Please use plaintext. We do not plan to disable SSL verification.
It will help in quick unit testing