Set the MASTERKEY_KEY_STORE_ENABLED
parameter of the config.ini file to false (default) to generate a master key without a KeyStore.
Set the MASTERKEY_KEY_STORE_ENABLED
parameter of the config.ini file to true.
After adding the encryption module to the fabric-server-start.sh module, create the Keystore folder under the k2view home directory for all nodes:
cd $K2_HOME
mkdir .keystore
Run the keytool
command on the coordinator node:
keytool -genseckey -alias masterkey_key_name -keyalg aes -keysize 256 -storepass <password> -keystore $K2_HOME/.keystore/fabric.keystore -storetype PKCS12
scp $K2_HOME/.keystore/fabric.keystore fabric@10.10.10.10:/$K2_HOME/.keystore/
sed -i "s@#KEY_STORE_LOCATION=.*@KEY_STORE_LOCATION=$K2_HOME/.keystore/fabric.keystore@" $K2_HOME/config/config.ini
sed -i 's@#KEY_STORE_PASSWORD=.*@KEY_STORE_PASSWORD= <password>@' $K2_HOME/config/config.ini
Set the MASTERKEY_KEY_STORE_ENABLED
parameter of the config.ini file to false (default) to generate a master key without a KeyStore.
Set the MASTERKEY_KEY_STORE_ENABLED
parameter of the config.ini file to true.
After adding the encryption module to the fabric-server-start.sh module, create the Keystore folder under the k2view home directory for all nodes:
cd $K2_HOME
mkdir .keystore
Run the keytool
command on the coordinator node:
keytool -genseckey -alias masterkey_key_name -keyalg aes -keysize 256 -storepass <password> -keystore $K2_HOME/.keystore/fabric.keystore -storetype PKCS12
scp $K2_HOME/.keystore/fabric.keystore fabric@10.10.10.10:/$K2_HOME/.keystore/
sed -i "s@#KEY_STORE_LOCATION=.*@KEY_STORE_LOCATION=$K2_HOME/.keystore/fabric.keystore@" $K2_HOME/config/config.ini
sed -i 's@#KEY_STORE_PASSWORD=.*@KEY_STORE_PASSWORD= <password>@' $K2_HOME/config/config.ini