dcsimg
Certificate management from java without keytool.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Linh_Nguyen
Posted On:   Wednesday, April 3, 2002 03:38 AM

Is it possible to do all the things that keytool does from java? I would like to create a keypair and then a certificate signing request and so on from java without using keytool.

Thanks, Linh

Re: Certificate management from java without keytool.

Posted By:   ian_atyahoo  
Posted On:   Saturday, April 13, 2002 03:33 PM

Repost. Hopefully this is easier to read.



String lParam [] = {
"-import",
"-alias",myAlias,
"-file",-FileName,
"-keystore",myKeyStore,
"-storepass",myPass,
"-noprompt"};

sun.security.tools.KeyTool.main(lParam);

Re: Certificate management from java without keytool.

Posted By:   ian_atyahoo  
Posted On:   Saturday, April 13, 2002 03:31 PM

An example of how you can import a Cert reply
into a KeyStore programmatically via KeyTool.

String lParam [] = {
"-import",
"-alias",myAlias,
"-file", FileName,
"-keystore",myKeyStore,
"-storepass",myPass,
"-noprompt"};

sun.security.tools.KeyTool.main(lParam);
About | Sitemap | Contact