Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I'm using a netty server. I don't want to enforce a specific TLS version for customers but I do want to know which TLS version is negotiated for each incoming connection to the server.

I can't find any way to determine that from the ssl handshake completion event or any other way to extract it from the handler.

Is it possible to get this information?

I don't see how it can be got from

  • https://netty.io/4.0/api/io/netty/handler/ssl/SslHandshakeCompletionEvent.html
  • https://netty.io/4.0/api/io/netty/handler/ssl/SslHandler.html
  • Thanks!

    EDIT I poked around a bit and found "sslHandler.engine().getSession().getProtocol()" but still need to test and see if it works.

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question . Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers .