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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top