fili icon indicating copy to clipboard operation
fili copied to clipboard

Add custom sslcontext support in fili

Open Chandrasekar-Rajasekar opened this issue 6 years ago • 1 comments

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.

Chandrasekar-Rajasekar avatar Jul 25 '19 16:07 Chandrasekar-Rajasekar

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.

michael-mclawhorn avatar Jul 25 '19 20:07 michael-mclawhorn