Unable to get javax.servlet.request.X509Certificate attribute in EAP after upgrading to JDK17
Issue
- After upgrading working application(deployed on EAP 7.4.15) from JDK11 to JDK17 - the servlet request attribute
javax.servlet.request.X509Certificateis not found in available request attributes. The 2 way SSL is working fine. - The
javax.servlet.request.X509Certificateis 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.