Subject: [sup-talk] Getting GPG working in Sup

From: James Pearson <[email-masked]>
Date: Mon, 24 Mar 2014 17:41:16 -0700

I recently decided that I should start using GPG, primarily for signing
messages (not encrypting them).  I'm looking at
https://github.com/sup-heliotrope/sup/wiki/gpg , and while I think I've got
everything set correctly, test messages aren't being signed.

# .sup/config.yaml
  1 ---
  2 :accounts:
  3   :default:
[...]
  9     :gpgkey: '58DAFDEB'
[...]

# .sup/hooks/crypto-mode.rb
 1 crypto_selector.set_to :sign

[$]> gem list | grep gpg
gpgme (2.0.5, 2.0.2)

and that should be it, right?  But when I send an email to myself, I don't
get prompted for my GPG passphrase, and I don't see an .asc on the
receiving side.

Any tips?  I'm using sup 0.15.4.

 - P
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: James Pearson <[email-masked]>
Date: Wed, 2 Apr 2014 18:00:06 -0700

On Tue, Mar 25, 2014 at 12:44 AM, Gaute Hope <[email-masked]> wrote:
> I'm using 2.0.5. What is the output of `rake test` in sup.git? It runs
> through a few gpg-tests as well.

After installing 'rr', this gave me the message

     WARNING: No crypto set up, crypto will not be tested. Reason:
["Environment variable 'GPG_AGENT_INFO' not set, is gpg-agent
running?", "If gpg-agent is running, try $ export `cat
~/.gpg-agent-info`"]

I hadn't realized that gpg-agent was a required thing. :3

So, I did this:
https://github.com/sup-heliotrope/sup/wiki/gpg#using-pinentry-curses-gpg-agent-without-a-new-graphical-window
 and this:  http://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html
 and now I think things are hunky-dory.

Thanks for the help!

---

From: Gaute Hope <[email-masked]>
Date: Tue, 25 Mar 2014 08:44:05 +0100

> everything set correctly, test messages aren't being signed.

I don't use quotes, but don't know if it matters.

I'm using 2.0.5. What is the output of `rake test` in sup.git? It runs
through a few gpg-tests as well. Could you cd to sup.git/test and do:

$ ruby -I. -w test_crypto.rb -v

Do you have gpg installed? What does sup tell you about the signature of
this message (just below header)?

> Any tips?  I'm using sup 0.15.4.

Is the crypto-selector visible in edit-mode? Is 'sign' selected?

- gaute