Link to home
Start Free TrialLog in
Avatar of johnchan2000
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
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After getting the name as mentioned above, you can extract the common name (cn) to get the client name.
Avatar of johnchan2000
johnchan2000

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