2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Store TPM unsealed apikey in usual location

This commit is contained in:
Jarrod Johnson 2021-06-23 17:22:18 -04:00
parent ee5ea4263f
commit feb418ac59

View File

@ -69,6 +69,7 @@ for hdl in $(tpm2_getcap handles-persistent|awk '{print $2}'); do
unsealeddata=$(tpm2_unseal -Q -c $hdl)
if [[ $unsealeddata == "CONFLUENT_APIKEY:"* ]]; then
confluent_apikey=${unsealeddata#CONFLUENT_APIKEY:}
echo $confluent_apikey > /etc/confluent/confluent.apikey
fi
done
needseal=0