Re: GPG - Mailing list encryption

2010-09-23 Thread christoph
* Am So, Sep 19, 2010 at 09:02:36 +0200 , schrieb the.real.ka...@gmail.com:
 * christoph christ...@kluenter.de [Fri, Sep 17, 2010 at 10:53:55PM +0200]
  * Am Do, Sep 16, 2010 at 11:51:38 +0200 , schrieb the.real.ka...@gmail.com:
   Hello list,
   
   I am somehow clueless, I searched the web a lot regarding this topic but
   didn't find a clear statement. Therefore I ask on this list.
   
   I'm using mailing lists a lot, no problem so far. I'm also a big GPG
   user. Some mailing lists I'm on are using encryption too, in order to
   not have to re-encode the mails on the sever, the admins configured the
   mailing list in a way that you send an email to one address:
   secur...@foo.edu.fi for example, but the mail should be encrypted to all
   the users (which I know) on that list. 
   
   I didn't figure out a way to manage that kind of lists. How would
   you do it? I prefer to ask before I start writing my own wrapper for
   GPG, maybe I miss something easy.
  
  In ~/.gnupg/gpg.conf:
group 0x=KEYID1
group 0x=KEYID2
group 0x=KEYID3
  
  in muttrc:
crypt-hook secur...@foo.edu.fi 0x
 Hey,
 thx, looks very promising. Somehow it is not working, and I don't find
 much information about this crypto-hook. What version is it working
 with? 
 
 Do you have more information about that hook, maybe a link to the
 documentation, which I couldn't find? So I could investigate why it is
 not running on my own.
I run mutt 1.5.20. I asked google and found the Mail which I used (I think)
http://osdir.com/ml/debian-bugs-dist/2010-02/msg04070.html

What problems do you have ?
When I send a Mail to the configured list, mutt asks me if I want to
encrypt with the key-ID 0x555 and if I say yes, mutt instructs 
gpg to use that key-ID. And since that key-ID is configured as a group,
gpg encrypts to all those configured recipients.


 
  But its quite hard to keep track of all the keys to use.
 Yeah, true, but I have a pla for that.
Which ?


Cheers,
 christoph
 
 
 Thanks for ypur help,
 the real kabel

-- 
GPG-Key: http://www.kluenter.de/chris.gpg
GPG-Fingerprint: 88DA B106 D973 B2AF 7CCB  725A F76C 803C 758F 71C0


Re: GPG - Mailing list encryption

2010-09-19 Thread the . real . kabel
* christoph christ...@kluenter.de [Fri, Sep 17, 2010 at 10:53:55PM +0200]
 * Am Do, Sep 16, 2010 at 11:51:38 +0200 , schrieb the.real.ka...@gmail.com:
  Hello list,
  
  I am somehow clueless, I searched the web a lot regarding this topic but
  didn't find a clear statement. Therefore I ask on this list.
  
  I'm using mailing lists a lot, no problem so far. I'm also a big GPG
  user. Some mailing lists I'm on are using encryption too, in order to
  not have to re-encode the mails on the sever, the admins configured the
  mailing list in a way that you send an email to one address:
  secur...@foo.edu.fi for example, but the mail should be encrypted to all
  the users (which I know) on that list. 
  
  I didn't figure out a way to manage that kind of lists. How would
  you do it? I prefer to ask before I start writing my own wrapper for
  GPG, maybe I miss something easy.
 
 In ~/.gnupg/gpg.conf:
   group 0x=KEYID1
   group 0x=KEYID2
   group 0x=KEYID3
 
 in muttrc:
   crypt-hook secur...@foo.edu.fi 0x
Hey,
thx, looks very promising. Somehow it is not working, and I don't find
much information about this crypto-hook. What version is it working
with? 

Do you have more information about that hook, maybe a link to the
documentation, which I couldn't find? So I could investigate why it is
not running on my own.

 But its quite hard to keep track of all the keys to use.
Yeah, true, but I have a pla for that.


Thanks for ypur help,
the real kabel


Re: GPG - Mailing list encryption

2010-09-19 Thread Gregor Zattler
Hi mutt users,
* the.real.ka...@gmail.com the.real.ka...@gmail.com [19. Sep. 2010]:
 * christoph christ...@kluenter.de [Fri, Sep 17, 2010 at 10:53:55PM +0200]
 * Am Do, Sep 16, 2010 at 11:51:38 +0200 , schrieb the.real.ka...@gmail.com:
 Some mailing lists I'm on are using encryption too, in order to
 not have to re-encode the mails on the sever, the admins configured the
 mailing list in a way that you send an email to one address:
 secur...@foo.edu.fi for example, but the mail should be encrypted to all
 the users (which I know) on that list. 
 
 I didn't figure out a way to manage that kind of lists. How would
 you do it? I prefer to ask before I start writing my own wrapper for
 GPG, maybe I miss something easy.
 
 In ~/.gnupg/gpg.conf:
   group 0x=KEYID1
   group 0x=KEYID2
   group 0x=KEYID3
 
 in muttrc:
   crypt-hook secur...@foo.edu.fi 0x
 Hey,
 thx, looks very promising. Somehow it is not working, and I don't find
 much information about this crypto-hook. What version is it working
 with? 

It's standard mutt at least since v 1.5.20 but I don't know how
long this feature exists.

 Do you have more information about that hook, maybe a link to the
 documentation, which I couldn't find? So I could investigate why it is
 not running on my own.

This is the documentation from the mutt manual:
http://www.mutt.org/doc/devel/manual.html#crypt-hook

21.Choosing the Cryptographic Key of the Recipient

   Usage:

   crypt-hook pattern keyid

   When encrypting messages with PGP/GnuPG or OpenSSL, you may
   want to associate a certain key with a given e-mail address
   automatically, either because the recipient's public key can't
   be deduced from the destination address, or because, for some
   reasons, you need to override the key Mutt would normally
   use. The crypt-hook command provides a method by which you can
   specify the ID of the public key to be used when encrypting
   messages to a certain recipient.

   The meaning of keyid is to be taken broadly in this context:
   You can either put a numerical key ID here, an e-mail address,
   or even just a real name.


This is the documentation from the gpg man page:
http://www.gnupg.org/documentation/manuals/gnupg-devel/GPG-Key-related-Options.html

   --group name=value1
  Sets up a named group, which is similar to aliases
  in email pro‐ grams.  Any time the group name is a
  recipient (-r or --recipient), it will be expanded
  to the values specified. Multiple groups with the
  same name are automatically merged into a single
  group.

  The values are key IDs or fingerprints, but any key
  description is accepted. Note that a value with
  spaces in it will be treated as two different
  values. Note also there is only one level of expan‐
  sion --- you cannot make an group that points to
  another group.  When used from the command line, it
  may be necessary to quote the argument to this
  option to prevent the shell from treating it as
  multiple arguments.


So basically you tell mutt to call gpg with an group name as
recipient and gpg expands the group name to a list of recipients.


Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-


Re: GPG - Mailing list encryption

2010-09-17 Thread Hu Tao
Hi,

On Thu, Sep 16, 2010 at 11:51:38PM +0200, the.real.ka...@gmail.com wrote:
 Hello list,
 
 I am somehow clueless, I searched the web a lot regarding this topic but
 didn't find a clear statement. Therefore I ask on this list.
 
 I'm using mailing lists a lot, no problem so far. I'm also a big GPG
 user. Some mailing lists I'm on are using encryption too, in order to
 not have to re-encode the mails on the sever, the admins configured the
 mailing list in a way that you send an email to one address:
 secur...@foo.edu.fi for example, but the mail should be encrypted to all
 the users (which I know) on that list. 
 
 I didn't figure out a way to manage that kind of lists. How would
 you do it? I prefer to ask before I start writing my own wrapper for
 GPG, maybe I miss something easy.
 

Would this work?

send-hook '~C ^secur...@foo\.edu\.fi$' set crypt_autoencrypt=yes ; set 
crypt_autosign=yes

 With best regards,
 the real kabel

-- 
Thanks,
Hu Tao


Re: GPG - Mailing list encryption

2010-09-17 Thread the . real . kabel
* Hu Tao hu...@cn.fujitsu.com [Fri, Sep 17, 2010 at 04:04:07PM +0800]
 Hi,
 
 On Thu, Sep 16, 2010 at 11:51:38PM +0200, the.real.ka...@gmail.com wrote:
  Hello list,
  
  I am somehow clueless, I searched the web a lot regarding this topic but
  didn't find a clear statement. Therefore I ask on this list.
  
  I'm using mailing lists a lot, no problem so far. I'm also a big GPG
  user. Some mailing lists I'm on are using encryption too, in order to
  not have to re-encode the mails on the sever, the admins configured the
  mailing list in a way that you send an email to one address:
  secur...@foo.edu.fi for example, but the mail should be encrypted to all
  the users (which I know) on that list. 
  
  I didn't figure out a way to manage that kind of lists. How would
  you do it? I prefer to ask before I start writing my own wrapper for
  GPG, maybe I miss something easy.
  
 
 Would this work?
 
 send-hook '~C ^secur...@foo\.edu\.fi$' set crypt_autoencrypt=yes ; set 
 crypt_autosign=yes
Hi,
mh I doubt it, as how should mutt know to whom it should encrypt the
mails? I guess I should somehow tell gpg to use:

gpg -e us...@domain1.com us...@domain2.com ...

I guess it would not be hard to write a wrapper that checks if the email
address is secur...@foo.edu.fi and if yes encrypt the mail according to
my needs. But, I guess there are people that do this too, so I prefered
to ask as my time is short these days :)

Thanks for the answer, if nobody has a complete solution, I will use
your hook to buld my wrapper.

Have a nice day,
the real kabel



Re: GPG - Mailing list encryption

2010-09-17 Thread christoph
* Am Do, Sep 16, 2010 at 11:51:38 +0200 , schrieb the.real.ka...@gmail.com:
 Hello list,
 
 I am somehow clueless, I searched the web a lot regarding this topic but
 didn't find a clear statement. Therefore I ask on this list.
 
 I'm using mailing lists a lot, no problem so far. I'm also a big GPG
 user. Some mailing lists I'm on are using encryption too, in order to
 not have to re-encode the mails on the sever, the admins configured the
 mailing list in a way that you send an email to one address:
 secur...@foo.edu.fi for example, but the mail should be encrypted to all
 the users (which I know) on that list. 
 
 I didn't figure out a way to manage that kind of lists. How would
 you do it? I prefer to ask before I start writing my own wrapper for
 GPG, maybe I miss something easy.

In ~/.gnupg/gpg.conf:
  group 0x=KEYID1
  group 0x=KEYID2
  group 0x=KEYID3

in muttrc:
  crypt-hook secur...@foo.edu.fi 0x

But its quite hard to keep track of all the keys to use.

Cheers,
  Christoph

 
 With best regards,
 the real kabel

-- 
GPG-Key: http://www.kluenter.de/chris.gpg
GPG-Fingerprint: 88DA B106 D973 B2AF 7CCB  725A F76C 803C 758F 71C0


GPG - Mailing list encryption

2010-09-16 Thread the . real . kabel
Hello list,

I am somehow clueless, I searched the web a lot regarding this topic but
didn't find a clear statement. Therefore I ask on this list.

I'm using mailing lists a lot, no problem so far. I'm also a big GPG
user. Some mailing lists I'm on are using encryption too, in order to
not have to re-encode the mails on the sever, the admins configured the
mailing list in a way that you send an email to one address:
secur...@foo.edu.fi for example, but the mail should be encrypted to all
the users (which I know) on that list. 

I didn't figure out a way to manage that kind of lists. How would
you do it? I prefer to ask before I start writing my own wrapper for
GPG, maybe I miss something easy.

With best regards,
the real kabel