From: Zbigniew Jędrzejewski-Szmek Date: Sun, 12 Dec 2021 17:56:07 +0000 (+0100) Subject: man: make systemd-creds man page a bit easier to read X-Git-Tag: v250-rc3~55^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F21752%2Fhead;p=thirdparty%2Fsystemd.git man: make systemd-creds man page a bit easier to read --- diff --git a/man/systemd-creds.xml b/man/systemd-creds.xml index 8ed96ca1401..73999f425a1 100644 --- a/man/systemd-creds.xml +++ b/man/systemd-creds.xml @@ -77,8 +77,8 @@ setup - Generates a host encryption key for credentials, if none has been generated - before. This ensures the /var/lib/systemd/credential.secret file is initialized + Generates a host encryption key for credentials, if one has not been generated + already. This ensures the /var/lib/systemd/credential.secret file is initialized with a random secret key if it doesn't exist yet. This secret key is used when encrypting/decrypting credentials with encrypt or decrypt, and is only accessible to the root user. Note that there's typically no need to invoke this command explicitly as it is @@ -87,7 +87,7 @@ - encrypt input output + encrypt input|- output|- Loads the specified (unencrypted plaintext) input credential file, encrypts it and writes the (encrypted ciphertext) version to the specified output credential file. The resulting file @@ -141,8 +141,8 @@ - decrypt input - output + decrypt input|- + output|- Undoes the effect of the encrypt operation: loads the specified (encrypted ciphertext) input credential file, decrypts it and writes the (decrypted plaintext) @@ -152,11 +152,11 @@ credential name embedded in the encrypted file. If it does not match decryption fails. This is done in order to ensure that encrypted credentials are not re-purposed without this being detected. The credential name to compare with the embedded credential name may also be overridden with the - switch. If only one path is specified (or the output path specified as - -) it is taken as input path and the decrypted credential is written to standard - output. If the input path is specified as - the encrypted credential is read from - standard input. In this mode, the expected name embedded in the credential cannot be derived from the - path and should be specified explicitly with . + switch. If the input path is specified as -, the + encrypted credential is read from standard input. If only one path is specified or the output path + specified as -, the decrypted credential is written to standard output. In this + mode, the expected name embedded in the credential cannot be derived from the path and should be + specified explicitly with . Decrypting credentials requires access to the original TPM2 chip and/or credentials host key, see above. Information about which keys are required is embedded in the encrypted credential data,