7

How should one convert javax.net.ssl.SSLContext to io.netty.handler.ssl.SslContext ? I have access to SSLContext but need to set SSlContext in my client library.

josh
  • 13,793
  • 12
  • 49
  • 58

1 Answers1

6

Have you tried io.netty.handler.ssl.JdkSslContext yet, which seems to accept a pre-configured javax.net.ssl.SSLContext?

jCoder
  • 2,289
  • 23
  • 22
  • I checked it but I was not sure if there are any caveats. – josh Dec 23 '17 at 12:21
  • Looks like there has been an issue/improvement some time ago, which were resolved in current versions. Also, looking into the code (via Grepcode) seems to reveal some mismatch to the API docs. – jCoder Dec 23 '17 at 12:29