adding passphrases to gpg-agent

2006-11-23 Thread Jorge Almeida

Isn't there some way to do for gpg-agent what ssh-add does for
ssh-agent?

I'm trying to use a unique gpg-agent listening at a standard socket.
Unless I'm missing something, the only way I have to provide passphrases
to gpg-agent is to try some job (signing something, or whatever) and
then give the passphrase when asked for it. But the pinentry-program
entry in gpg-agent.conf decides whether I'm supposed to be in an X
session or not. (BTW, pinentry-curses didn't work for me. But that's not
the real issue.)
Is there an alternative?
--
Jorge Almeida

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: adding passphrases to gpg-agent

2006-11-23 Thread Werner Koch
On Thu, 23 Nov 2006 10:25, [EMAIL PROTECTED] said:

 Isn't there some way to do for gpg-agent what ssh-add does for
 ssh-agent?

No, gpg-agent works different.

If you want to preset a passphrase, you may do so using 
gpg-preset-passphrase - there is a man page for it.


Shalom-Salam,

   Werner


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: adding passphrases to gpg-agent

2006-11-23 Thread Jorge Almeida

On Thu, 23 Nov 2006, Werner Koch wrote:


On Thu, 23 Nov 2006 10:25, [EMAIL PROTECTED] said:


Isn't there some way to do for gpg-agent what ssh-add does for
ssh-agent?


No, gpg-agent works different.

If you want to preset a passphrase, you may do so using
gpg-preset-passphrase - there is a man page for it.



OK, that seems to do the job (not much different from ssh-add, is it?),
judging by the contents of
http://www.gnupg.org/documentation/manuals/gnupg/gpg_002dpreset_002dpassphrase.html
and
http://www.gnupg.org/documentation/manuals/gnupg/Invoking-gpg_002dpreset_002dpassphrase.html#Invoking-gpg_002dpreset_002dpassphrase

Now, my system doesn't have such command. I have gnupg 1.4.5 and
1.9.20. (OS is gentoo linux) Is gpg-preset-passphrase new to version
2.0.0?
And what about gpgsm --dump-secret-keys, necessary to know the keygrip
argument of gpg-preset-passphrase? This is what I get:
$ gpgsm --dump-secret-keys
gpgsm: NOTE: THIS IS A DEVELOPMENT VERSION!
gpgsm: It is only intended for test purposes and should NOT be
gpgsm: used in a production environment or with production keys!
Did I misunderstood something, or is it just that I'm using a package
not recent enough?

TIA,

Jorge Almeida

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


GnuPG 2.0.1rc1 released

2006-11-23 Thread Werner Koch
Hi,

I did a release candidate for GnuPG 2.0.1.  It fixes the problems on
AMD64 as well as on 64 bit platforms.  There are also some other
build fixes.

 ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-2.0.1rc1.tar.bz2
 ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-2.0.1rc1.tar.bz2.sig

You should also get an updated libassuan version:

 ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-1.0.1.tar.bz2
 ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-1.0.1.tar.bz2.sig


Noteworthy changes in GnuPG:

 * Experimental support for the PIN pads of the SPR 532 and the Kaan
   Advanced card readers.  Add disable-keypad scdaemon.conf if you
   don't want it.  Does currently only work for the OpenPGP card and
   the authentication and decrypt keys.

 * Fixed build problems on some some platforms and crashes on amd64.


Noteworthy changes in libassuan 1.0.1: 

 * New function: assuan_set_io_monitor.

 * New function: assuan_register_post_cmd_notify.

 * Fixed a memory leak.




Shalom-Salam,

   Werner




___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Problems to import and export private keys using GnuPG v2.

2006-11-23 Thread Vini Engel
Hi guys,

I have just installed FC6 with GnuPG v2 and am now having problems to import 
my previous private keys, funnily the same problems happens if I try to 
export the key that I generated using gpg2.

When I try to import the key I get a message saying that importing secret 
keys not allowed - see below. The same happens if I try to export a private 
key.

$ gpg --import private.pgp
gpg: importing secret keys not allowed
gpg: Total number processed: 1
gpg:   secret keys read: 1

I think I must be missing something very small as importing and exporting keys 
should be trivial. Would anyone know the solution for this?

Thanks a lot,
Vini

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: adding passphrases to gpg-agent

2006-11-23 Thread Werner Koch
On Thu, 23 Nov 2006 11:55, [EMAIL PROTECTED] said:

 OK, that seems to do the job (not much different from ssh-add, is it?),
 judging by the contents of

ssh-add loads a key into ssh-agent and to dothis it has to ask for the
passphrase.  gpg-preset-passphrase merely stores a passphrase into
gpg-agent's cache.

 Now, my system doesn't have such command. I have gnupg 1.4.5 and
 1.9.20. (OS is gentoo linux) Is gpg-preset-passphrase new to version
 2.0.0?

No it is arounf for two years or so.  BTW, you need to add 
allow-preset-passphrase
to gpg-agent.conf.

   $ gpgsm --dump-secret-keys
   gpgsm: NOTE: THIS IS A DEVELOPMENT VERSION!
   gpgsm: It is only intended for test purposes and should NOT be
   gpgsm: used in a production environment or with production keys!
 Did I misunderstood something, or is it just that I'm using a package
 not recent enough?

There is no secret key


Shalom-Salam,

   Werner


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Problems to import and export private keys using GnuPG v2.

2006-11-23 Thread Werner Koch
On Thu, 23 Nov 2006 04:55, [EMAIL PROTECTED] said:

 $ gpg --import private.pgp
 gpg: importing secret keys not allowed

#ifdef ENABLE_SELINUX_HACKS
if (1)
  {
/* We don't allow to import secret keys because that may be used
   to put a secret key into the keyring and the user might later
   be tricked into signing stuff with that key.  */
log_error (_(importing secret keys not allowed\n));
return 0;
  }
#endif 

So you used

 --enable-selinux-support
This prevents access to certain files and won't
allow import or export of secret keys. 

with configure.  You need to build a second binary without that flag
and use that binary to import stuff.


Salam-Shalom,

   Werner




___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GnuPG 2.0

2006-11-23 Thread Adam Cripps

On 11/14/06, Werner Koch [EMAIL PROTECTED] wrote:


As soon as there is a financial backing, a real port to Windows can be
done.


Shalom-Salam,

   Werner



Would windows users be willing to fund development by contribution?
That way, once a threshold of money has been received then someone
could start work on the problem.

Adam

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Logo ballot reminder

2006-11-23 Thread Werner Koch
Hi,

this is a reminder for the logo ballot.  All subscribers of the
gnupg-users and gnupg-devel lists should have received a mail
(unfortunately text/html) with an URL to the ballot page.  If you miss
such a mail, please let me know and I will resend this mail.

As of now only 151 out of 1230 casted their vote.

Hurry, the deadline is next Thursday.


Salam-Shalom,

   Werner



___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Logo ballot reminder

2006-11-23 Thread Michael Jaritz
Werner Koch schrieb:

this is a reminder for the logo ballot.  All subscribers of the
gnupg-users and gnupg-devel lists should have received a mail
(unfortunately text/html) with an URL to the ballot page.  If you miss
such a mail, please let me know and I will resend this mail.

Please resend it.

Michael
-- 
dumdideldu...

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: adding passphrases to gpg-agent

2006-11-23 Thread Ivan Boldyrev
On 9667 day of my life Jorge Almeida wrote:
 If you want to preset a passphrase, you may do so using
 gpg-preset-passphrase - there is a man page for it.

 Now, my system doesn't have such command. I have gnupg 1.4.5 and
 1.9.20. (OS is gentoo linux)

$ locate gpg-preset-passphrase
/usr/libexec/gpg-preset-passphrase

-- 
Ivan Boldyrev

| recursion, n:
|   See recursion


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users