johnchan2000
asked on
Reading SSL Certificate Information from a Java/Javabean
Experts,
I have a java bean that is being deployed in JBOSS in the secure mode (SSL/HTTPS). Is there a way for me to programatically find out which client (based on the ssl certificate(?)) invoked my java bean? Please help.
Thanks,
jc
I have a java bean that is being deployed in JBOSS in the secure mode (SSL/HTTPS). Is there a way for me to programatically find out which client (based on the ssl certificate(?)) invoked my java bean? Please help.
Thanks,
jc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
After getting the name as mentioned above, you can extract the common name (cn) to get the client name.
ASKER
Thanks!!! That's it. I was baffled for a while because I tried that and keep getting null - it turned out that the client/user must be authenticated. Anyways, this is the solution I was looking for.
Thanks,
jc
Thanks,
jc