Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

Useful XWS-Security Command-Line Tools

In this release, the following command-line tools are included. These tools provide specialized utilities for keystore management or for specifying security configuration files.


Note: The exported private key is not secured with a password, so it should be handled carefully. For example, you can export a private key from a keystore and use it to sign certificate requests obtained through any means using other key/certificate management tools. These certificate requests are then sent to a certificate authority for validation and certificate generation.

The keyexport tool can be found in the directory <JWSDP_HOME>/xws-security/bin/, and can be run from the command line by executing keyexport.sh (on Unix systems) or keyexport.bat (on Windows systems). The options for this tool are listed in Table 3-6.

Table 3-6  Options for keyexport tool
Option
Description
-keyfile key-file
Required. The location of the file to which the private key will be exported.
[ -outform output-format ]    
This specifies the output format. The options are DER and PEM. The DER format is the DER encoding (binary format) of the certificate. The PEM format is the base64-encoding of the DER encoding with header and footer lines added.
[ -keystore keystore-file ]       
Location of the keystore file containing the key. If no value is given, this option defaults to ${user-home}/.keystore.
[ -storepass store-password ]   
Password of the keystore. User is prompted for the password if this option is omitted.
[ -keypass key-password ]
The password used to protect the private key inside the keystore. User is prompted for the password if this option is omitted.
[ -alias alias ]
The alias of the key entry inside the keystore.


Divider
Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.