How to read HTTPS TLS version in Jetty?

I have embedded the Jetty server in my application. In my application, I can read the encrypted set that it matched by reading the javax.servlet.request.cipher_suiterequest attributes. Now I want to check if my clients use TLSv1.0, TLSv.1.1 or TLSv.1.2. If I enable SSL debugging, I can see it on the console:

qtp2819825-43, WRITE: TLSv1.2 Application Data, length = 8038

But how can I read it in mine handler()?

I have studied both org.eclipse.jetty.server.Request, and javax.servlet.http.HttpServletRequest. There is a method getProtocol(), but it returns HTTP/1.1.

+4
source share
1 answer

This question has been open for some time, but since there is an answer, it may be relevant to others.

ServerConnector, SecureRequestCustomizer HttpConfiguration. fooobar.com/questions/410918/..., .

, HttpServletRequest. SSLSession "bugreport" , , >= 9.3. - org.eclipse.jetty.servlet.request.ssl_session, , setSslSessionAttribute("your.attribute.name")

0

All Articles