Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To generate a new keystore, run the following command (on one line) within the /opt/shrine/ directory:

Code Block
languagebash
themerdark
$ 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

...

Code Block
languagebash
themerdark
$ keytool 
-genkeypair 
-keysize 2048 
-alias shrine-example.harvard.edu 
-dname "CN=shrine-example.harvard.edu, OU=SHRINE Example, O=SHRINE Network, L=Boston, S=MA, C=US" 
-keyalg RSA 
-keypass password 
-storepass password 
-keystore shrine.keystore
-storetype pkcs12 
-validity 7300

This will generate a shrine.keystore file within the /opt/shrine directory. You can then verify the creation of the keystore by running:

Code Block
languagebash
themerdark
$ keytool -list -keystore shrine.keystore -storepass password