> 12.5 | Create a Java Security Environment Step by Step

> 12.5.1 | Create Key Store

> The key store contains the key pairs for signing data. For producing the key store with keys the tool “keytool.exe” can be used. The program is in the Java SDK. (for a description see http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/keytool.html).
> Example:

> keytool -genkey -alias keyname -keypass keypassword -keystore customer.ks -storepass keystorepassword -sigalg SHA1withRSA -keyalg RSA

> If you want to re-use the key store created in Section 12.1.1 you have to use the alias and passwords used there.