Java code to import certificate to Keystore


Joined
Apr 8, 2009
Messages
9
Reaction score
0
Hi,
I have managed to import a certificate using the command:
keytool -import -alias aliasName -keystore ..\lib\security\cacerts -file c:\abc.cer

To run this application in the client environment, there is no permission to update the JVM keystore in the above fashion. They have instead asked us to handle it in the code.

Kindly let me know how to achieve the above functionality in JAVA code.

Thanks,
Raghu
 
Ad

Advertisements


Top