Describe the bug Trying to make call to secured service using feign client by disabling the SSL validation.

Sample Configuration Eureka Config: Spring Cloud Netflix Feign Client + Eureka - Disable SSL Validation not working

Feign config to disable SSL validation: Spring Cloud Netflix Feign Client + Eureka - Disable SSL Validation not working

Client Interface: `@FeignClient(value = "ServceA",) public interface ServiceAClient {

@RequestMapping(method = RequestMethod.POST, value = "/test")
GenericResponse<?> fireUserNotification(@RequestHeader("Authorization")String token,  @RequestBody String test);

}`

With above configuration, feign is able to resolve the host and port of ServiceA (https://127.0.0.1:8080/test) using eureka but it doesn't disable ssl validation resulting in following error: ERROR SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names matching IP address 127.0.0.1 found (46076ms)

Using url instead of service id, it is working as expected.

Also, tried to override the ssl socket factory and hostverifier using below code: Spring Cloud Netflix Feign Client + Eureka - Disable SSL Validation not working

which resulted in unknown host error due feign client not able to resolve host and port from eureka.

Comment From: spencergibb

disabling ssl validation in feign has no bearing on ssl validation in the eureka client.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.