We use a signed certificate and steps once we got the certificate were as follow
keytool -import -v -noprompt -trustcacerts -alias user_keystore -file your_certificate.cer -keystore user_keystore -storepass your_password
#list content of keystore
keytool -list -v -keystore user_keystore -storepass your_password
echo "your_password" > user_keystore_config
chmod 600 user_keystore_config
chmod 600 user_keystore
cp -p user_keystore $AW_HOME/data
cp -p user_keystore_config $AW_HOME/data
cd $AW_HOME/web/classes
java -DAW_HOME=${AW_HOME} -cp AppWorx.jar:uc4-ra.jar com.appworx.util.EncryptKeystoreFile your_password
# check that password got encrypted
cat AW_HOME/data/user_keystore_config