0

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

Thanks!

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

Daniel
  • 546
  • 1
  • 6
  • 15

1 Answers1

0

Just use sslHandler.engine().getSession().getProtocol() after the handshake completed.

Norman Maurer
  • 23,104
  • 2
  • 33
  • 31