From 6ff6fdad73ff13a99ca207f40ee0836ff9569cd6 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 31 Jan 2018 20:40:03 -0500 Subject: [PATCH] Use -o instead of stdout redirect with paperkey Using -o makes sure that the file is created with 0600 permissions instead of whatever the default umask setting is. Signed-off-by: Konstantin Ryabitsev --- protecting-code-integrity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protecting-code-integrity.md b/protecting-code-integrity.md index 7e33235..5af106b 100644 --- a/protecting-code-integrity.md +++ b/protecting-code-integrity.md @@ -390,7 +390,7 @@ all Linux distros, as well as installable via `brew install paperkey` on Macs. Run the following command, replacing `[fpr]` with the full fingerprint of your key: - $ gpg --export-secret-key [fpr] | paperkey > /tmp/key-backup.txt + $ gpg --export-secret-key [fpr] | paperkey -o /tmp/key-backup.txt The output will be in a format that is easy to OCR or input by hand, should you ever need to recover it. Print out that file, then take a pen and write