]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: fix LoadCredentialEncrypted example (#27387)
authorLawrence Thorpe <thorpe_lawrence@yahoo.co.uk>
Tue, 25 Apr 2023 13:41:01 +0000 (14:41 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Apr 2023 13:41:01 +0000 (15:41 +0200)
Embedded credential name 'ciphertext.cred' does not match filename 'foobar', refusing.

docs/CREDENTIALS.md

index 8cdf6d7ffa98bf076ebeed4d94a159986464d46c..083c7ecc3c532409622b15128e64cf00827dc604 100644 (file)
@@ -195,7 +195,7 @@ The `systemd-creds` tool provides the commands `encrypt` and `decrypt` to
 encrypt and decrypt/authenticate credentials. Example:
 
 ```sh
-systemd-creds encrypt plaintext.txt ciphertext.cred
+systemd-creds encrypt --name=foobar plaintext.txt ciphertext.cred
 shred -u plaintext.txt
 systemd-run -P --wait -p LoadCredentialEncrypted=foobar:$(pwd)/ciphertext.cred systemd-creds cat foobar
 ```