I am using mod_jk 1.2 with JBoss bundle and Apache2.
I am follow the instruction from JBoss wiki 
http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss, and it 
workable.
However, the problem which I meet now is I am not able to get the Client Cert's 
serial number from my Java code. It return "Object was null".

My code
----------------------------------
Object o = request.getAttribute("javax.servlet.request.X509Certificate");
if (o != null) {
    X509Certificate certs[] = (X509Certificate[])o;
    X509Certificate cert = certs[0];
    
    //Get the Serial Number of the digital certs.
    serialNumBig = cert.getSerialNumber();
    serialNum = serialNumBig.intValue();
    System.out.println("Serial Number: "+ serialNum);
} else {
    System.out.println("Object was null.");
}
-----------------------------------

I try to get configure SSL enable in JBoss without link and using with Apache2. 
It able to get the Client Cert's serial number.

May I know which part I had miss out? Anybody able to give me some advice?

Thank you.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953617#3953617

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953617

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to