I'm developing a microservice with Spring Boot and Feign for external services access. I have to access an external service in a test/development environment. This environment has another instance that is hosted at a different location. The problem is that this test URL hasn't a valid SSL certificate, and the feign configuration seems to fail.
I tried adding the application.yml file:
feign:
httpclient:
disable-ssl-validation: true
but I still get the same Exception:
feign.RetryableException: No subject alternative names matching IP address someIp found executing POST https://someIp:someport/somePath
And after further investigation, I've found that it was caused by a java.security.cert.CertificateException
Shouldn't this application.yml configuration disable the SSL certificate validation and, therefore, avoid this exception?