Hello Sun Kum, how you doing?
I could install a certificate in Jboss 4.2.2.GA using keytool .
First of all, you must have the certificate signed by Certified Authority.
Try using theses commands. Pay attention when the server is x64 platform, because you'll need to copy the .txt assigned to .CER binary as x64 .
D:\jdk522\bin>keytool -genkey -alias myalias -keyalg RSA -keystore d:\jboss.keystore
D:\jdk522\bin>keytool.exe -import -alias myalias -keystore D:\jboss-4.2.2.GA\server\s
icorp\conf\jboss.keystore -file D:\jboss-4.2.2.GA\server\cert.cer
Enter keystore password: mypass
Owner: CN=xxxxxxx, OU="xxxxxxx, xxxx",
O=xxxxxx, L=Rio de Janeiro, ST=Rio de Janeiro, C=BR
Issuer: EMAILADDRESSemail@example.com, CN=Thawte Premium Server CA, OU=Certification Servic
es Division, O=Thawte Consulting cc, L=Cape Town, ST=Western Cape, C=ZA
Serial number: 36b4ae6ef75611c7f6
Valid from: Mon May 10 21:00:00 BRT 2010 until: Thu May 10 20:59:59 BRT 2012
Trust this certificate? [no]: yes
Certificate was added to keystore