I have create a keystore in pkcs12 format containing a self signed certificate signed by openssl.
when i use the method KeyStore.getCertificate(), it returns null.
However i copy those code to a standalone java source and run it, certificate is returned by the same method.
i have checked that all the parameters with in the code is the same.
for example: key store alias, key store password, key store location path.
The main difference is, one is a standalone class, one is run on JBoss.
I am using JBoss 4.0.3sp1 AS with CentOS 5.3
Could anyone tell me Why ? or there is known issue on this version of JBoss
Thankyou
Who loads the KeyStore?