[sup-talk] Getting GPG working in Sup

8 views
Skip to first unread message

James Pearson

unread,
Mar 24, 2014, 8:41:16 PM3/24/14
to sup-talk
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

Gaute Hope

unread,
Mar 25, 2014, 3:44:05 AM3/25/14
to sup-talk
Excerpts from James Pearson's message of 2014-03-25 01:41:16 +0100:
> 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'

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


>
> # .sup/hooks/crypto-mode.rb
> 1 crypto_selector.set_to :sign
>
> [$]> gem list | grep gpg
> gpgme (2.0.5, 2.0.2)

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)?

>
> 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.

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

- gaute
signature.asc

James Pearson

unread,
Apr 2, 2014, 9:00:06 PM4/2/14
to sup-talk
On Tue, Mar 25, 2014 at 12:44 AM, Gaute Hope <e...@gaute.vetsj.com> 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!
_______________________________________________
sup-talk mailing list
sup-...@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
Reply all
Reply to author
Forward
0 new messages