Skip to content

Commit ebdc5e8

Browse files
author
Ronan Pigott
committed
luks-list: show tang key thumbprints
1 parent 47b01ab commit ebdc5e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/luks/clevis-luks-common-functions.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ clevis_luks_print_pin_config() {
173173
local pin=
174174
case "${P}" in
175175
tang)
176-
local url
176+
local url adv thp
177177
url="$(jose fmt -j- -g url -u- <<< "${content}")"
178-
pin=$(printf '{"url":"%s"}' "${url}")
178+
adv="$(jose fmt -j- -g adv -o- <<< "${content}")"
179+
thp="$(jose jwk thp -i- <<< "${adv}" | tail -n1)"
180+
pin=$(printf '{"url":"%s","thp":"%s"}' "${url}" "${thp}")
179181
printf "tang '%s'" "${pin}"
180182
;;
181183
tpm2)

0 commit comments

Comments
 (0)