HP StorageWorks Command View XP Advanced Edition Device Manager Server Installation and Configuration Guide (December 2005)
Command View XP AE Device Manager Server Security 110
keytool -genkey -keystore keystore-filename -storepass keystore-
password-name -alias alias -dname entity-distinguished-name -validity
validity-of-certificate -keypass keypass -keyalg RSA
NOTE: Specify the same password for -storepass and -keypass.
Example of executing the command:
> keytool -genkey -keystore .keystore -storepass sanssl -alias san3gssl
-dname "CN=san3g, OU=SSL, O=hitachi, L=yokohama, S=kanagawa, C=JP" -
validity 720 -keypass sanssl -keyalg RSA
2. Check the created keystore file.
Execute the following command:
keytool -list -keystore keystore-filename -storepass keystore-password
6-5-2 Exporting an Authentication File from a Keystore File
To export an authentication file:
1. Export an authentication file.
Execute the following command:
keytool -export -keystore keystore-filename -storepass keystore-
password -alias alias -file authentication-filename
2. Check the exported authentication file.
Execute the following command:
keytool -printcert -v -file authentication-filename
6-5-3 Creating a Truststore File and Importing an Authentication File
To create a truststore file and import an authentication file:
1. Create the truststore file and import the authentication file.
Execute the following command:
keytool -import -alias alias -keystore keystore-filename -storepass
keystore-password -trustcerts -file authentication-filename
2. Check the created keystore file.
Execute the following command:
keytool -list -keystore keystore-filename -storepass keystore-password