i would need create a custom Feign client which will be able to call server api with .p12 client certificate with password. This is HTTPS communication.
Is possible do this? I try override client with configuration
@Configuration
public class FeignConfiguration {
@Bean
public Client feignClient()
{
Client trustSSLSockets = new Client.Default(
sslContextFactory(),
new NoopHostnameVerifier());
return trustSSLSockets;
}
}
but i dont know how to configure sslContextFactory...
Is this possible way ? Or how can i do this.
Thx for help.