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:
parent
ee5ea4263f
commit
feb418ac59
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user