Hi Jimmy,
You could call the keytool with System.exec(), bt the keytool is OS-specific, so I do not know if this is the way you want to go..
By the way, I am struggling with EJB over SSL/HTTPS in JBoss 5.1.0GA, are you on the same version?
Would you mind explaining how you got it to work? (cfr. https://community.jboss.org/thread/152957)
Thanks a lot!
Jo