Hi All,

I'm using Tomcat 7 with APR. I have HttpServletRequest from which I get client certificate.

X509Certificate[] clientCertificates = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate");
  • when I do full SSL handshake, clientCertificates are returned correctly,
  • when I do Session identificator handshake, clientCertificates are returned correctly too,
  • but when is TLS SessionTicket mechanism used, then no client certificate is returned to me.

I need this certificate to identify which client is sending the request.

Does anybody know how to get it by Java? Or another solution could be disable TLS SessionTicket on Tomcat, then the communication will use Session Identificator and my problem will be solved.

Thank You in advance.

When I used BIO instead of APR, SessionTicket mechanism is not used. So it's solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.