I'm using feign.httpclient.ApacheHttpClient
for feign
:
final Builder feignBuilder = Feign.builder();
feignBuilder.client(new ApacheHttpClient())
...
and get an Exception
:
java feign.RetryableException: Certificate for ... doesn't match any of the subject alternative names: [...] executing GET
How to disable SSL validation for the ApacheHttpClient
?
I've tried VM arguments as described in the https://stackoverflow.com/a/69925472/6863550, https://stackoverflow.com/a/53534658/6863550;
-Dfeign.httpclient.disable-ssl-validation=true
-Dfeign.httpclient.disableSslValidation=true
but it doesn't work for me.