Unable to get javax.servlet.request.X509Certificate attribute in EAP after upgrading to JDK17

Solution Verified - Updated -

Issue

  • After upgrading working application(deployed on EAP 7.4.15) from JDK11 to JDK17 - the servlet request attribute javax.servlet.request.X509Certificate is not found in available request attributes. The 2 way SSL is working fine.
  • The javax.servlet.request.X509Certificate is never set in JDK17
  • Following is returning null which was working fine in application deployed on EAP before migrating to JDK 17
(X509Certificate[]) httpServletRequest.getAttribute(“javax.servlet.request.X509Certificate”); 

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.4.7+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content