The password of the newly created keystore must match the Glassfish's master password, since the master password is used to access the certificate keystore. Note: You will be prompted to enter keystore password when you run the above command.
> keytool -genkey -alias youralias -keyalg RSA -keystore yourkeystorename.jks -keysize 2048 Use the following command to create a keystore: