InfoCenter Home >
5: Securing applications -- special topics >
5.5: Certificate-based authentication >
5.5.6: Tools for managing certificates and keys >
5.5.6.1: The CFWK tools for certificate and key management >
5.5.6.1.1: The KeyGenTool tool

5.5.6.1.1: The KeyGenTool tool

This command creates a pair of RSA keys (private and public) and places them in a file.

Syntax:

java com.ibm.cfwk.tools.KeyGenTool --forge U_keyalg U_keyfile

Arguments:

U_keyalg
The key algorithm: "RSA/512/F4" or "RSA/1024/F4"
U_keyfile
The file in which to place the key

Examples:

java com.ibm.cfwk.tools.KeyGenTool --forge "RSA/512/F4"
D:\projects\websphere\keyrings\WebAS.TestServer.key

Generating key. Might take a while...

The example above creates keys for the server called TestServer and places them in a file called WebAS.TestServer.key.

java com.ibm.cfwk.tools.KeyGenTool --forge "RSA/512/F4"
D:\projects\websphere\keyrings\WebAS.TestCA.key

Generating key. Might take a while...

The example above creates keys for a local, non-production CA called TestCA and places them in a file called WebAS.TestCA.key.

Note   This is a general-purpose tool with applications beyond those discussed here. This page discusses only the subset of options relevant to managing certificates for WebSphere Application Server programs.

Go to previous article: The CFWK tools Go to next article: MakeCertRequest

 

 
Go to previous article: The CFWK tools Go to next article: MakeCertRequest