Change-Id: I88686761d324f9bd734d03ccb92f4a49783cf4a0
Issue-ID: AAF-762
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
if [ $? -ne 0 ]; then echo; echo -e "${YELLOW} Primary Key does not exist, creating...";
rm -f PrimaryKeyBlob
- echo "tpm2_createprimary -P ${O_PASSWORD} -K ${KEY_PASSWORD} -A o -g 0x000B
+ echo "tpm2_createprimary -P ${O_PASSWORD} -K ${KEY_PASSWORD} -H o -g 0x000B
-G 0x0001 -T device -V -C PrimaryKeyBlob"
- tpm2_createprimary -P ${O_PASSWORD} -K ${KEY_PASSWORD} -A o -g 0x000B \
+ tpm2_createprimary -P ${O_PASSWORD} -K ${KEY_PASSWORD} -H o -g 0x000B \
-G 0x0001 -T device -V -C PrimaryKeyBlob
if [ $? -ne 0 ]; then echo; echo -e "${RED}Error, Exit.";
rm -f PrimaryKeyBlob
fi
-#END
\ No newline at end of file
+#END
# Start Resource Manager
if [ -z $TPM_SIMULATOR ]; then
echo "Using TPM Hardware for the operations";
- tpm2-abrmd
+ tpm2-abrmd --allow-root
else
echo "Using TPM Simulator for the opeations";
hostip=$(ip route show | awk '/default/ {print $3}');