systemd-cryptenroll
Interactively enroll or remove methods used to unlock LUKS2-encrypted devices. Uses a password to unlock the device unless otherwise specified. In order to allow a partition to be unlocked during system boot, update the
/etc/crypttabfile or the initramfs. More information: https://www.freedesktop.org/software/systemd/man/latest/systemd-cryptenroll.html.
- Enroll a new password (similar to
cryptsetup luksAddKey):
systemd-cryptenroll --password
- Enroll a new recovery key (i.e. a randomly generated passphrase that can be used as a fallback):
systemd-cryptenroll --recovery-key
- List available tokens, or enroll a new PKCS#11 token:
systemd-cryptenroll --pkcs11-token-uri
- List available FIDO2 devices, or enroll a new FIDO2 device (
autocan be used as the device name when there is only one token plugged in):
systemd-cryptenroll --fido2-device
- Enroll a new FIDO2 device with user verification (biometrics):
systemd-cryptenroll --fido2-device --fido2-with-user-verification yes
- Unlock using a FIDO2 device, and enroll a new FIDO2 device:
systemd-cryptenroll --unlock-fido2-device --fido2-device
- Enroll a TPM2 security chip (only secure-boot-policy PCR) and require an additional alphanumeric PIN:
systemd-cryptenroll --tpm2-device --tpm2-with-pin yes
- Remove all empty passwords/all passwords/all FIDO2 devices/all PKCS#11 tokens/all TPM2 security chips/all recovery keys/all methods:
systemd-cryptenroll --wipe-slot
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
