Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Getting GPG working in Sup
@ 2014-03-25  0:41 James Pearson
  2014-03-25  7:44 ` Gaute Hope
  0 siblings, 1 reply; 3+ messages in thread
From: James Pearson @ 2014-03-25  0:41 UTC (permalink / raw)
  To: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 663 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1074 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

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

* Re: [sup-talk] Getting GPG working in Sup
  2014-03-25  0:41 [sup-talk] Getting GPG working in Sup James Pearson
@ 2014-03-25  7:44 ` Gaute Hope
  2014-04-03  1:00   ` James Pearson
  0 siblings, 1 reply; 3+ messages in thread
From: Gaute Hope @ 2014-03-25  7:44 UTC (permalink / raw)
  To: sup-talk

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [sup-talk] Getting GPG working in Sup
  2014-03-25  7:44 ` Gaute Hope
@ 2014-04-03  1:00   ` James Pearson
  0 siblings, 0 replies; 3+ messages in thread
From: James Pearson @ 2014-04-03  1:00 UTC (permalink / raw)
  To: sup-talk

On Tue, Mar 25, 2014 at 12:44 AM, Gaute Hope <eg@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-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


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

end of thread, other threads:[~2014-04-03  1:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-25  0:41 [sup-talk] Getting GPG working in Sup James Pearson
2014-03-25  7:44 ` Gaute Hope
2014-04-03  1:00   ` James Pearson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox