unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: add_gnupg_home should have ultimate trust on "its own" key
@ 2019-04-24 22:06 Daniel Kahn Gillmor
  2019-04-24 22:13 ` Daniel Kahn Gillmor
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Kahn Gillmor @ 2019-04-24 22:06 UTC (permalink / raw)
  To: Notmuch Mail

The typical use case for gpg is that if you control a secret key, you
mark it with "ultimate" ownertrust.

This bizarrely opaque --import-ownertrust mechanism is GnuPG's
standard mechanism to set up ultimate ownertrust (the ":6" means
"ultimate", for whatever reason).
---
 test/test-lib.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 58909ee7..6e383c85 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -120,6 +120,7 @@ add_gnupg_home ()
 
     # Change this if we ship a new test key
     FINGERPRINT="5AEAB11F5E33DCE875DDB75B6D92612D94E46381"
+    printf '%s:6\n' "$FINGERPRINT" | gpg --import-trustdb
 }
 
 # Each test should start with something like this, after copyright notices:
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-25  0:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24 22:06 [PATCH] test: add_gnupg_home should have ultimate trust on "its own" key Daniel Kahn Gillmor
2019-04-24 22:13 ` Daniel Kahn Gillmor
2019-04-24 22:15   ` [PATCH v2] " Daniel Kahn Gillmor
2019-04-24 23:23     ` [PATCH v3] " Daniel Kahn Gillmor

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).