From f0c2e5e551c49fb5a64a1fdae99c3d7dbbbda46a Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 22 May 2025 17:05:59 +0200 Subject: [PATCH] remark --- content/snippets/0290-secrets-in-repos.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/snippets/0290-secrets-in-repos.md b/content/snippets/0290-secrets-in-repos.md index 643b771..42e684d 100644 --- a/content/snippets/0290-secrets-in-repos.md +++ b/content/snippets/0290-secrets-in-repos.md @@ -35,3 +35,19 @@ can be used. Make sure to store the passphrase safely and securely in a password manager or so, otherwise you can not get to your data any longer or everyone can do so. + +**Remark** +Sometimes, gpg tries to ask for the passphrase via the configured pinentry app, which sometimes fails. In those cases add + +``` +--pinentry-mode loopback +``` + +to the commandline: + + +``` +gpg --pinentry-mode=loopback --symmetric --cipher-algo AES256 --armor --output secrets.asc secrets.txt + +gpg --pinentry-mode=loopback --decrypt --output secrets.txt secrets.asc +```