Generate the keys.
% crkeys -options |
Use the following options to create key stores based on the type of SSL connectivity you want to use.
Specifies an alias for the certificate or the key pair. Use the hostname of the application as the alias. The alias names must be unique within a key store.
Changes the password of the key store and all the keys within the key store.
Specifies that the key pair or certificate for the specified entity should be deleted from key store.
Exports a self-signed certificate of the specified entity to the specified file.
Specifies the name of the file that the certificate is to be imported from or exported to.
Generates a new key pair for the specified alias.
Lists all the options.
Imports a self-signed certificate of an entity that is allowed to connect to this node. When importing the certificate the hostname of the node that this certificate represents should be used as the alias.
The key generation algorithm. Defaults to `RSA'. Can be either `RSA' or `DSA'.
The key size. Defaults to 1024, Can be any multiple of 64 in the range 512-1024 for DSA keys and range 512-2048 for RSA keys.
Lists all the entities contained in the key store.
Specifies the new password for the key store and all the keys in the key store.
Specifies the password for the key store. If a password is not specified, the user is prompted for one.
Specifies the private key store as the target of the operation.
Number of days the self-signed certificate is valid.
Specifies the trust key store as the target of the operation.
The following examples show how to use the crkeys command.
To generate a public-private key pair:
crkeys -private –generate|-delete –alias application_hostname [-keyalg keyalg] [-keysize keysize] [-validity days_valid] [–password password] |
To export the self signed public key for a key pair to a file:
crkeys -private –export –file cert_file –alias application_hostname [–password password] |
To import an exported, as shown in the previous example, self signed public key into the trust store:
crkeys –trust –import –file cert_file –alias application_hostname [-password password] |
To delete a key or key pair:
crkeys {-private|–trust} -delete –alias application_hostname [-password password] |
To list all of the public keys:
crkeys {-private|–trust} –list [-password password] |
To change the SSL key store, both the trust and the private store, password:
crkeys –cpass -password oldpassword -new newpassword |
To print instructions for using the crkeys command:
crkeys -help |