16.2. Generate a key store and a masked password
jboss in a key store at jboss-as/bin/password/password.keystore.
Procedure 16.2. Generate a key pair and key store for password masking
- At the command line, change directory to the
jboss-as/bin/passworddirectory. - Use
keytoolto generate the key pair with the following command:keytool -genkey -alias jboss -keyalg RSA -keysize 1024 -keystore password.keystoreImportant:You must specify the same password for the key store and key pair
- Optional:
Make the resulting password.keystore readable by the JBoss Application Server process owner only.
On Unix-based systems this is accomplished by using thechowncommand to change ownership to the JBoss Application Server process owner, andchmod 600 password.keystoreto make the file readable only by the owner.This step is recommended to increase the security of your server.Note: the JBoss Application Server process owner should not have interactive console log in access. In that case you will be performing these operations as another user. Creating masked passwords requires read access to the key store, so you may wish to complete configuration of masked passwords before restricting the key store file permissions.
keytool command, refer to Section 15.1, “SSL Encryption overview”.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.