fili
fili copied to clipboard
Add custom sslcontext support in fili
User must override getSSLContext method to give their own sslContext. The function should return the object of io.netty.handler.ssl.SslContext.
protected SslContext getSSLContext() {
//create SSL Context here
if(sslContext.instanceOf(io.netty.handler.ssl.SslContext.class))
return sslContext;
if(sslContext.instanceOf(javax.net.ssl.SSLContext.class))
return new JdkSslContext(sslContext, true, ClientAuth.REQUIRE)
.
.
.
return null
}
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
definitely need a change to CHANGELOG, and you should probably create an issue to link to in the changelog ticket.
Should also add a test to config that this code gets excercised.