clevis-luks-list.1.adoc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. CLEVIS-LUKS-LIST(1)
  2. ===================
  3. :doctype: manpage
  4. == NAME
  5. clevis-luks-list - Lists pins bound to a LUKS device
  6. == SYNOPSIS
  7. *clevis luks list* -d DEV [-s SLT]
  8. == OVERVIEW
  9. The *clevis luks list* command list the pins bound to LUKS device.
  10. For example:
  11. clevis luks list -d /dev/sda1
  12. == OPTIONS
  13. * *-d* _DEV_ :
  14. The LUKS device on which to list bound pins
  15. * *-s* _SLT_ :
  16. The slot to use for listing the pin from
  17. == EXAMPLES
  18. clevis luks list -d /dev/sda1
  19. 1: sss '{"t":1,"pins":{"tang":[{"url":"addr1"},{"url":"addr2"}],"tpm2":[{"hash":"sha256","key":"ecc"}],"sss":{"t":1,"pins":{"tang":[{"url":"addr3"}]}}}}'
  20. 2: tang '{"url":"addr"}'
  21. 3: tpm2 '{"hash":"sha256","key":"ecc","pcr_bank":"sha1","pcr_ids":"7"}'
  22. As we can see in the example above, */dev/sda1* has three slots bound each with a different pin.
  23. - Slot #1 is bound with the _sss_ pin, and uses also tang and tpm2 pins in its policy.
  24. - Slot #2 is bound using the _tang_ pin
  25. - Slot #3 is bound with the _tpm2_ pin
  26. Note that the output of *clevis luks list* can be used with the *clevis luks bind* command, such as:
  27. clevis luks bind -d /dev/sda1 tpm2 '{"hash":"sha256","key":"ecc","pcr_bank":"sha1","pcr_ids":"7"}'
  28. And we will bind another slot with a policy similar to the one we have in slot #3.
  29. Also note that if you are interested in a particular slot, you can pass the _-s SLT_ argument to *clevis luks list*:
  30. clevis luks list -d /dev/sda1 -s 2
  31. 2: tang '{"url":"addr"}'
  32. In the above example, we listed only the pin bound to slot #2.
  33. == SEE ALSO
  34. link:clevis-luks-bind.1.adoc[*clevis-luks-bind*(1)],
  35. link:clevis-encrypt-tang.1.adoc[*clevis-encrypt-tang*(1)],
  36. link:clevis-encrypt-tpm2.1.adoc[*clevis-encrypt-tpm2*(1)],
  37. link:clevis-encrypt-sss.1.adoc[*clevis-encrypt-sss*(1)],