Closed mkadan closed 7 years ago
Thanks for reporting the issue. I didn't know the Netty SSL specification. You are right, it should be configurable or implemented by default if the SslContext
allows normal HTTP connections. I'll update the starter soon.
Fixed in 2.0.2
When you try to proxy to HTTPS destination you get:
This happens because Netty is not configured with SSLContext. To fix that I have provided my own HttpClientProvider bean with overridden createHttpClient(MappingProperties):
But actually the only difference with the default one configured in Spring Boot CharonConfiguration could be put in one line:
requestFactory.setSslContext(SslContextBuilder.forClient().build());
I think this should be the default config (as HTTPS is actually pretty wide-spread protocol), or at least it should be configurable through properties without bean override.