You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

To Generate a New Keystore

Most importantly, ensure that $KEYSTORE_ALIAS matches the publicly-accessible hostname of the machine that will be using this keystore. To generate a new keystore, run the following command (on one line):

keytool 
-genkeypair
-keysize 2048
-alias $KEYSTORE_ALIAS
-dname "CN=$KEYSTORE_ALIAS, OU=$KEYSTORE_HUMAN, O=SHRINE Network, L=$KEYSTORE_CITY, S=$KEYSTORE_STATE, C=$KEYSTORE_COUNTRY"
-keyalg RSA
-keypass $KEYSTORE_PASSWORD
-storepass $KEYSTORE_PASSWORD
-keystore $KEYSTORE_FILE
-storetype pkcs12
-validity 7300
  • No labels