Re: Problem with gpg smartcard / 4096bits keys

2011-11-21 Thread Emmanuel JOORIS
Can i do an "up" ?
Anyone have an idea or i need to re-gen my keys ?

Regards


Le jeudi 17 novembre 2011 à 16:09 +0100, Emmanuel JOORIS a écrit :
> Here a full log, before i stop system pcscd but i seams that it is
> reload by gpg2.
> Also, i success to create or load and use 3072 bits keys.
> 
> mahoru@debian:~/.gnupg$ gpg2 --card-edit
> 
> scdaemon[3299]: enabled debug flags: cardio
> scdaemon[3299]: listening on socket `/tmp/gpg-9QyA9z/S.scdaemon'
> scdaemon[3299]: handler for fd -1 started
> scdaemon[3299]: reader slot 0: not connected
> scdaemon[3299]: slot 0: ATR=3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73
> C0 01 40 00 90 00 0C
> scdaemon[3299]: DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2 le=-1 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 A4 00 0C 02 3F 00
> scdaemon[3299]: DBG:  response: sw=6B00  datalen=0
> scdaemon[3299]: DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6 le=-1 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 A4 04 00 06 D2 76 00 01 24 01
> scdaemon[3299]: DBG:  response: sw=9000  datalen=0
> scdaemon[3299]: DBG: dump:
> scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=4F lc=-1 le=256 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 4F 00
> scdaemon[3299]: DBG:  response: sw=9000  datalen=16
> scdaemon[3299]: DBG:   dump:  D2 76 00 01 24 01 02 00 00 05 00 00
> 10 E5 00 00
> scdaemon[3299]: AID: D2 76 00 01 24 01 02 00 00 05 00 00 10 E5 00 00
> scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=5F p2=52 lc=-1 le=256 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 CA 5F 52 00
> scdaemon[3299]: DBG:  response: sw=9000  datalen=10
> scdaemon[3299]: DBG:   dump:  00 31 C5 73 C0 01 40 05 90 00
> scdaemon[3299]: Historical Bytes: 00 31 C5 73 C0 01 40 05 90 00
> scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=C4 lc=-1 le=256 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 C4 00
> scdaemon[3299]: DBG:  response: sw=9000  datalen=7
> scdaemon[3299]: DBG:   dump:  01 20 20 20 03 00 03
> scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 6E 00
> scdaemon[3299]: DBG:  response: sw=9000  datalen=217
> scdaemon[3299]: DBG:   dump:  4F 10 D2 76 00 01 24 01 02 00 00 05
> 00 00 10 E5 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0
> 0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 10 00 00 20 00 C2 06 01 10
> 00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 01 20 20 20 03 00 03 C5 3C
> 64 89 1D 7C 09 CC 65 8A 31 B2 D1 A4 90 2E 9E 03 D6 1B A0 38 87 A7 40
> 2C 8B 32 E3 80 8A 41 95 32 6D BC 54 33 FF A4 6E BA 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C6 3C 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 CD 0C 4E C3 D4 75 4E C3 D4 75 00 00 00 00
> scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=5E lc=-1 le=256 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 5E 00
> scdaemon[3299]: DBG:  response: sw=9000  datalen=0
> scdaemon[3299]: DBG:   dump:
> scdaemon[3299]: Version-2 ..: yes
> scdaemon[3299]: Get-Challenge ..: yes (2048 bytes max)
> scdaemon[3299]: Key-Import .: yes
> scdaemon[3299]: Change-Force-PW1: yes
> scdaemon[3299]: Private-DOs : yes
> scdaemon[3299]: Algo-Attr-Change: yes
> scdaemon[3299]: SM-Support .: no
> scdaemon[3299]: Max-Cert3-Len ..: 2048
> scdaemon[3299]: Max-Cmd-Data ...: 2048
> scdaemon[3299]: Max-Rsp-Data ...: 2048
> scdaemon[3299]: Cmd-Chaining ...: no
> scdaemon[3299]: Ext-Lc-Le ..: yes
> scdaemon[3299]: Status Indicator: 05
> scdaemon[3299]: GnuPG-No-Sync ..: no
> scdaemon[3299]: GnuPG-Def-PW2 ..: no
> scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 6E 00
> scdaemon[3299]: DBG:  response: sw=9000  datalen=217
> scdaemon[3299]: DBG:   dump:  4F 10 D2 76 00 01 24 01 02 00 00 05
> 00 00 10 E5 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0
> 0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 10 00 00 20 00 C2 06 01 10
> 00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 01 20 20 20 03 00 03 C5 3C
> 64 89 1D 7C 09 CC 65 8A 31 B2 D1 A4 90 2E 9E 03 D6 1B A0 38 87 A7 40
> 2C 8B 32 E3 80 8A 41 95 32 6D BC 54 33 FF A4 6E BA 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C6 3C 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 CD 0C 4E C3 D4 75 4E C3 D4 75 00 00 00 00
> scdaemon[3299]: Key-Attr-sign ..: RSA, n=4096, e=32, fmt=std
> scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
> scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 6E 00
> scdaemon[3299]: DBG:  response: sw=9000  datalen=217
> scdaemon[3299]: DBG:   dump:  4F 10 D2 76 00 01 24 01 02 00 00 05
> 00 00 10 E5 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0
> 0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 10 00 00 20 00 C2 06 01 10
> 00 00 20 

Re: Problem with gpg smartcard / 4096bits keys

2011-11-17 Thread Emmanuel JOORIS
Here a full log, before i stop system pcscd but i seams that it is
reload by gpg2.
Also, i success to create or load and use 3072 bits keys.

mahoru@debian:~/.gnupg$ gpg2 --card-edit

scdaemon[3299]: enabled debug flags: cardio
scdaemon[3299]: listening on socket `/tmp/gpg-9QyA9z/S.scdaemon'
scdaemon[3299]: handler for fd -1 started
scdaemon[3299]: reader slot 0: not connected
scdaemon[3299]: slot 0: ATR=3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73
C0 01 40 00 90 00 0C
scdaemon[3299]: DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2 le=-1 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 A4 00 0C 02 3F 00
scdaemon[3299]: DBG:  response: sw=6B00  datalen=0
scdaemon[3299]: DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6 le=-1 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 A4 04 00 06 D2 76 00 01 24 01
scdaemon[3299]: DBG:  response: sw=9000  datalen=0
scdaemon[3299]: DBG: dump:
scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=4F lc=-1 le=256 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 4F 00
scdaemon[3299]: DBG:  response: sw=9000  datalen=16
scdaemon[3299]: DBG:   dump:  D2 76 00 01 24 01 02 00 00 05 00 00
10 E5 00 00
scdaemon[3299]: AID: D2 76 00 01 24 01 02 00 00 05 00 00 10 E5 00 00
scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=5F p2=52 lc=-1 le=256 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 CA 5F 52 00
scdaemon[3299]: DBG:  response: sw=9000  datalen=10
scdaemon[3299]: DBG:   dump:  00 31 C5 73 C0 01 40 05 90 00
scdaemon[3299]: Historical Bytes: 00 31 C5 73 C0 01 40 05 90 00
scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=C4 lc=-1 le=256 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 C4 00
scdaemon[3299]: DBG:  response: sw=9000  datalen=7
scdaemon[3299]: DBG:   dump:  01 20 20 20 03 00 03
scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 6E 00
scdaemon[3299]: DBG:  response: sw=9000  datalen=217
scdaemon[3299]: DBG:   dump:  4F 10 D2 76 00 01 24 01 02 00 00 05
00 00 10 E5 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0
0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 10 00 00 20 00 C2 06 01 10
00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 01 20 20 20 03 00 03 C5 3C
64 89 1D 7C 09 CC 65 8A 31 B2 D1 A4 90 2E 9E 03 D6 1B A0 38 87 A7 40
2C 8B 32 E3 80 8A 41 95 32 6D BC 54 33 FF A4 6E BA 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 C6 3C 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 CD 0C 4E C3 D4 75 4E C3 D4 75 00 00 00 00
scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=5E lc=-1 le=256 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 5E 00
scdaemon[3299]: DBG:  response: sw=9000  datalen=0
scdaemon[3299]: DBG:   dump:
scdaemon[3299]: Version-2 ..: yes
scdaemon[3299]: Get-Challenge ..: yes (2048 bytes max)
scdaemon[3299]: Key-Import .: yes
scdaemon[3299]: Change-Force-PW1: yes
scdaemon[3299]: Private-DOs : yes
scdaemon[3299]: Algo-Attr-Change: yes
scdaemon[3299]: SM-Support .: no
scdaemon[3299]: Max-Cert3-Len ..: 2048
scdaemon[3299]: Max-Cmd-Data ...: 2048
scdaemon[3299]: Max-Rsp-Data ...: 2048
scdaemon[3299]: Cmd-Chaining ...: no
scdaemon[3299]: Ext-Lc-Le ..: yes
scdaemon[3299]: Status Indicator: 05
scdaemon[3299]: GnuPG-No-Sync ..: no
scdaemon[3299]: GnuPG-Def-PW2 ..: no
scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 6E 00
scdaemon[3299]: DBG:  response: sw=9000  datalen=217
scdaemon[3299]: DBG:   dump:  4F 10 D2 76 00 01 24 01 02 00 00 05
00 00 10 E5 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0
0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 10 00 00 20 00 C2 06 01 10
00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 01 20 20 20 03 00 03 C5 3C
64 89 1D 7C 09 CC 65 8A 31 B2 D1 A4 90 2E 9E 03 D6 1B A0 38 87 A7 40
2C 8B 32 E3 80 8A 41 95 32 6D BC 54 33 FF A4 6E BA 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 C6 3C 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 CD 0C 4E C3 D4 75 4E C3 D4 75 00 00 00 00
scdaemon[3299]: Key-Attr-sign ..: RSA, n=4096, e=32, fmt=std
scdaemon[3299]: DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
scdaemon[3299]: DBG:   PCSC_data: 00 CA 00 6E 00
scdaemon[3299]: DBG:  response: sw=9000  datalen=217
scdaemon[3299]: DBG:   dump:  4F 10 D2 76 00 01 24 01 02 00 00 05
00 00 10 E5 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0
0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 10 00 00 20 00 C2 06 01 10
00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 01 20 20 20 03 00 03 C5 3C
64 89 1D 7C 09 CC 65 8A 31 B2 D1 A4 90 2E 9E 03 D6 1B A0 38 87 A7 40
2C 8B 32 E3 80 8A 41 95 32 6D BC 54 33 FF A4 6E BA 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 C6 3C 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

Re: Problem with gpg smartcard / 4096bits keys

2011-11-17 Thread Werner Koch
On Thu, 17 Nov 2011 11:58, emmanuel.joo...@gmail.com said:

> I use Debian testing with gnupg2 2.0.18, i have a BCM5880 smart card

I don't know thisreader. Is this from Broadcom?

> scdaemon[2840]: pcsc_transmit failed: not transacted (0x80100016)

This error message is kind of "general error". It usually has nothing to
do with transactions. Adding "debug 2048" to scdaemon.conf will log all
I/O with the reader.

You may also try running without pcscd and thus use scdaemon's internal
ccid reader.  Make sure that you have write permissions to the USB
device.



Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


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


Re: Problem with GPG

2011-08-10 Thread Heinz Diehl
On 10.08.2011, MFPA wrote: 

> The output from gpg --dump-options shows that both spellings are valid
> (for v 1.4.11 at least).

Yes, now I see it, after you mentioned it. However, the manpage doesn't know 
about
"armour", and that was the motivation for my mail.



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


Re: Problem with GPG

2011-08-09 Thread MFPA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi


On Tuesday 9 August 2011 at 9:40:13 PM, in
, Heinz Diehl wrote:


> Shouldn't this be "--armor" (and not "--armour")?!

The output from gpg --dump-options shows that both spellings are valid
(for v 1.4.11 at least).

- --
Best regards

MFPAmailto:expires2...@ymail.com

Editing is a rewording activity
-BEGIN PGP SIGNATURE-

iQE7BAEBCgClBQJOQdLRnhSAAEAAVXNpZ25pbmdfa2V5X0lEIHNpZ25pbmdf
a2V5X0ZpbmdlcnByaW50IEAgIE1hc3Rlcl9rZXlfRmluZ2VycHJpbnQgQThBOTBC
OEVBRDBDNkU2OSBCQTIzOUI0NjgxRjFFRjk1MThFNkJENDY0NDdFQ0EwMyBAIEJB
MjM5QjQ2ODFGMUVGOTUxOEU2QkQ0NjQ0N0VDQTAzAAoJEKipC46tDG5pDkwD/07y
5WDscq06yGqQRMFJhEHpoaAXxhi6P+mbsMEcsxRBB0oEmNNfeji0p5SUte2yc5GK
vcT4W1g2yJv1vQohubfambxzoSz0PhG1z0ZwJ+hlUbEgBcm41HAa7MuJWn6vQOto
WTHtibnBzyzp88x1iNRj3zL+VHcoEnlF5kB5/n0s
=Yj2b
-END PGP SIGNATURE-


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


Re: Problem with GPG

2011-08-09 Thread Heinz Diehl
On 08.08.2011, Werner Koch wrote: 

> >   echo "" | /usr/bin/gpg --batch --sign --armour --clearsig 
> > --passphrase-fd 0 $1
 
>  gpg --batch --sign --armour --clearsig --passphrase-fd 0 --yes -o "$1".asc 
> "$1"

Shouldn't this be "--armor" (and not "--armour")?!


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


Re: Problem with GPG

2011-08-09 Thread Werner Koch
On Tue,  9 Aug 2011 13:34, lists.gnupg-us...@duinheks.nl said:

>   gpg (GnuPG) 2.0.18
>   libgcrypt 1.5.0

Okay, I only asked to make sure that we are really using the right
version.

It would be helpful if you could change this function in
gnupg/g10/pkglue.c:

  static gcry_mpi_t
  mpi_from_sexp (gcry_sexp_t sexp, const char * item)
  {
gcry_sexp_t list;
gcry_mpi_t data;
  
list = gcry_sexp_find_token (sexp, item, 0);
assert (list);
data = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
assert (data);
gcry_sexp_release (list);
return data;
  }

to  

  static gcry_mpi_t
  mpi_from_sexp (gcry_sexp_t sexp, const char * item)
  {
gcry_sexp_t list;
gcry_mpi_t data;
  
list = gcry_sexp_find_token (sexp, item, 0);
assert (list);
data = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
if (!data)
  gcry_sexp_dump (list);
assert (data);
gcry_sexp_release (list);
return data;
  }

That is, insert the two extra lines and run again; you should notice
some debug output right before the assertion failure.


Shalom-Salam,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


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


Re: Problem with GPG

2011-08-09 Thread lists . gnupg-users
Hello Werner,

Yesterday, Aug 8, Werner Koch wrote to lists.gnupg-us...@duinheks.nl about...:

WK > You should better use
WK >  gpg --batch --sign --armour --clearsig --passphrase-fd 0 --yes -o 
"$1".asc "$1"

I will do that in future.

WK > to avoid the mv.  Even better use gpg-agent.

That will take some thinking. Will look into it.

WK > >   gpg: pkglue.c:41: mpi_from_sexp: Assertion `data' failed.
WK > >   Aborted
WK > Please show us the output of 
WK >/usr/bin/gpg --version 

Of course:
  $ gpg --version
  gpg (GnuPG) 2.0.18
  libgcrypt 1.5.0
  Copyright (C) 2011 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later
  
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.
  Home: ~/.gnupg
  Supported algorithms:
  Pubkey: RSA, ELG, DSA
  Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
  CAMELLIA192, CAMELLIA256
  Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
  Compression: Uncompressed, ZIP, ZLIB, BZIP2

Regards,

Hans.


J.D.H. Beekhuizen
e-mail: jdh.beekhui...@duinheks.nl
tel:+31(0)714015437
fax:+31(0)714017198

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


Re: Problem with GPG

2011-08-08 Thread Doug Barton
On 08/08/2011 05:58, lists.gnupg-us...@duinheks.nl wrote:
> Hello,
> 
> I call PGP from Pine with a simple script:

Take a look at http://dougbarton.us/PGP/ppf/index.html


>   gpg: pkglue.c:41: mpi_from_sexp: Assertion `data' failed.
>   Aborted

> I'm running GNUpg 2.0.18 under SlackWare 13.0, built with the
> libraries:
>   libgpg-error1.9
>   libgrypt1.5.0
>   libksba1.2.0
>   libassuan2.0.2

That's the same error I was getting when I ran 2.0.17 compiled against
the old libgcrypt after upgrading libgcrypt to 1.5.0. Does gpg --version
tell you that you're running 2.0.18?


Doug

-- 

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/


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


Re: Problem with GPG

2011-08-08 Thread Werner Koch
On Mon,  8 Aug 2011 14:58, lists.gnupg-us...@duinheks.nl said:

>   #!/bin/sh
>   echo "" | /usr/bin/gpg --batch --sign --armour --clearsig 
> --passphrase-fd 0 $1

You should better use

 gpg --batch --sign --armour --clearsig --passphrase-fd 0 --yes -o "$1".asc "$1"

to avoid the mv.  Even better use gpg-agent.

>   echo "xxx" | /usr/bin/gpg --batch --sign
> --armour --clearsig --passphrase-fd test
>   -BEGIN PGP SIGNED MESSAGE-
>   Hash: SHA1
>   gpg: pkglue.c:41: mpi_from_sexp: Assertion `data' failed.
>   Aborted

Please show us the output of 

   /usr/bin/gpg --version 


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


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


Re: problem with gpg

2011-06-02 Thread Jerome Baum
On Thu, Jun 2, 2011 at 23:08,   wrote:
> Yes I have the password and I was given a script that actually calls the
> file and inserts password but I have to do it for every single file I can't
> just run the script for all and have it decrypt all by running the script?
>
>
> I also don’t' know where to put the script it was given to me in note pad
> does it have to go in a path or file that the actual files are in ?

Could you provide the script? (Make sure to remove any sensitive
contents -- replace paths, filenames, passwords, and any other private
information with e.g. ***REDACTED***)

-- 
Jerome Baum
tel +49-1578-8434336
email jer...@jeromebaum.com
--
PGP: A0E4 B2D4 94E6 20EE 85BA E45B 63E4 2BD8 C58C 753A
PGP: 2C23 EBFF DF1A 840D 2351 F5F5 F25B A03F 2152 36DA

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


Re: Problem with gpg and option --check-options

2008-10-02 Thread Werner Koch
On Thu,  2 Oct 2008 13:26, [EMAIL PROTECTED] said:

> I will unsubscribe from the list and post an update in case I encounter 
> problems. Is there an anouncelist for your next release?

[EMAIL PROTECTED]


Shalom-Salam,

   Werner

-- 
Linux-Kongress 2008 + Hamburg + October 7-10 + www.linux-kongress.org

   Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.


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


Re: Problem with gpg and option --check-options

2008-10-02 Thread Michael
Hello Werner,

Am Donnerstag 02 Oktober 2008 08:33:17 schrieb Werner Koch:
> On Thu,  2 Oct 2008 07:56, [EMAIL PROTECTED] said:
> > All failed have a tool tip which says: gpgconf: invalid option
> > -check-options
>
> The name of the option should be --check-options (two leading dashes).
Thanks, my typo there are two dashes... 

> This is a quite new option to gpgconf, it was added on 2008-05-20 and
> thus it is not available in the last released version of GnuPG (2.0.9)

> I was not aware that KDE did a release requiring a non yet released
> version of GnuPG.  
> This is probably becuase all developers used an SVN
> snapshot. 
I use for KDE: Version 4.1.2 (KDE 4.1.1 (KDE 4.1 >= 20080828)) "release 52.2"
so this is kind of very actual but not (too) experimental..

> Background: The new code was added in the course of a Windows
> project to port KDE to Windows.  For Windows we use a snapshot of GnuPG.
>
> I know that a GnuPG release is long overdue; I hope to get a release
> candidate out in about 2 weeks.
I will unsubscribe from the list and post an update in case I encounter 
problems. Is there an anouncelist for your next release?

Michael

>
> Salam-Shalom,
>
>Werner


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


Re: Problem with gpg and option --check-options

2008-10-01 Thread Werner Koch
On Thu,  2 Oct 2008 07:56, [EMAIL PROTECTED] said:

> All failed have a tool tip which says: gpgconf: invalid option -check-options

The name of the option should be --check-options (two leading dashes).
This is a quite new option to gpgconf, it was added on 2008-05-20 and
thus it is not available in the last released version of GnuPG (2.0.9)

I was not aware that KDE did a release requiring a non yet released
version of GnuPG.  This is probably becuase all developers used an SVN
snapshot.  Background: The new code was added in the course of a Windows
project to port KDE to Windows.  For Windows we use a snapshot of GnuPG.

I know that a GnuPG release is long overdue; I hope to get a release
candidate out in about 2 weeks.


Salam-Shalom,

   Werner


-- 
Linux-Kongress 2008 + Hamburg + October 7-10 + www.linux-kongress.org

   Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.


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


Re: Problem with gpg and option --check-options

2008-10-01 Thread Michael
Hi,

thanks for the hint, I have changed this - unfortunately this did not made a 
change to the error message.

Interesting to mention what Kleopatra tells me: 
- gpgcong Configuration Check Ok
- gpg Configuration Check failed
- gpg-agent Configuration Check failed
- scddeamon Configuration Check failed
- dirmngr Configuration Check failed

All failed have a tool tip which says: gpgconf: invalid option -check-options

I have searched google so many times. i do not find a hint - hope you have one 
:-)))

Michael

Am Donnerstag 02 Oktober 2008 01:01:03 schrieb John Clizbe:
> Michael wrote:
> > keyserver-options auto-key-retrieve include-subkeys include-revoked
> > import- clean export-clean import-options import-clean
>
> import-options import-clean>
> belongs on a separate line from the keyserver-options


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


Re: Problem with gpg and option --check-options

2008-10-01 Thread John Clizbe
Michael wrote:

> keyserver-options auto-key-retrieve include-subkeys include-revoked import-
> clean export-clean import-options import-clean

import-options import-clean

belongs on a separate line from the keyserver-options


-- 
John P. Clizbe  Inet:John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. hkp://keyserver.gingerbear.net  or
 mailto:[EMAIL PROTECTED]

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Problem with gpg and option --check-options

2008-10-01 Thread Michael
Hello Charly, 

thanks for your answer, I have attacht further information at the bottom of 
this mail.

Am Mittwoch 01 Oktober 2008 13:13:35 schrieb Charly Avital:
> Michael wrote the following on 10/1/08 1:00 AM:
> > I am useing kde 4.1.1 and gpg 2.0.9 within kde there is a Program
> > Kleopatra to maintain the keys. This program performs a selfcheck and
> > complains about an option setting:
> >
> > gpgconf: ungültige Option "--check-options"
>
> there does seem to be such an option as --check-options.
[...]
> Whereas the --check option is always (or usually) composed as
> --check-sigs, --check-trustdb, etc.

> So maybe you'd be better erase (or comment) --check-options in your
> gpg.conf file.


These are my settings in gpg.conf I do not really see a check-option, how ever 
this makes sense. Maybe one of the experts sees the problem ?

default-key  923B023B
ask-cert-level
default-cert-level 2
require-cross-certification
charset utf-8
keyserver  hkp://subkeys.pgp.net
verbose
verbose
verbose
keyserver-options auto-key-retrieve include-subkeys include-revoked import-
clean export-clean import-options import-clean
comment GPG keyID 0x - For copy: http://tinyurl.com/x
use-agent

Thanks a lot
Michael



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


Re: Problem with gpg and option --check-options

2008-10-01 Thread Charly Avital
Michael wrote the following on 10/1/08 1:00 AM:
> Hello
> 
> I am useing kde 4.1.1 and gpg 2.0.9 within kde there is a Program
> Kleopatra to maintain the keys. This program performs a selfcheck and
> complains about an option setting:
> 
> gpgconf: ungültige Option "--check-options"
> 
> 
> I have searched all files up and down but I can not find out where this
> option is set. If there is anyone how has an idea to find this setting
> or even has an idea why this option might be invalid - I'd be happy to
> here about.
> 
> Thanks  a lot
> Michael

Michael,

there does seem to be such an option as --check-options.

There are such options as:
--import-options, --export-options, --list-options, --keyserver-options,
and a few more; all of them have to be defined by a value, e.g.
--list-options no-show-photos (do not show photos when listing keys
included in a user's keyserver), and so on.

Whereas the --check option is always (or usually) composed as
--check-sigs, --check-trustdb, etc.

--check-options as a inclusive option followed by a defining value is
invalid (I believe ungültige means invalid).

So maybe you'd be better erase (or comment) --check-options in your
gpg.conf file.

Just a thought,
Charly




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


Re: Problem with gpg --batch --gen-key

2006-08-31 Thread Robert J. Hansen
Johan Wevers wrote:
> Looks to me you're running out of random data. I don't know how to
> solve that on win32.

Not necessarily.  GnuPG 1.4.2-1.4.4 (at least) are known to have
problems when scripted from Java, mostly dealing with I/O operations
randomly blocking.  I know I've complained about this a couple of times
on the list; might be worth searching the archives to see if anyone else
has solutions to it.



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


Re: Problem with gpg --batch --gen-key

2006-08-31 Thread Johan Wevers
You, =?iso-8859-15?Q?Bj=F6rn_Mayer?=, wrote:

>  I am trying to generate a key from within a Java application. Everything 
> seems to go right,
>  but at the beginning, everything stops. I have no idea what could be wrong...
>  Anyone of you guys?

Looks to me you're running out of random data. I don't know how to solve
that on win32.

-- 
ir. J.C.A. Wevers //  Physics and science fiction site:
[EMAIL PROTECTED]   //  http://www.xs4all.nl/~johanw/index.html
PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html

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


Re: Problem with GPG and TheBat

2005-05-21 Thread omn
Hi Sean,

Sunday, May 22, 2005, 7:25:07 AM, you wrote:

> Hello gnupg-users,

> I am using gpg 1.41 Windows with TheBat and I get the following trying
> to retrieve keys:

> gpg: Signature made 05/21/05 21:52:30 using DSA key ID 6F50DB32
> gpg: requesting key 6F50DB32 from hkp server blackhole.pca.dfn.de
> gpg: renaming `c:/gnupg\pubring.gpg' to `c:/gnupg\pubring.bak' failed: 
> Permission denied
> gpg: error writing keyring `c:/gnupg\pubring.gpg': file rename error
> gpg: key 6F50DB32: public key "[User ID not found]" imported
> gpg: error reading `[stream]': file rename error
> gpg: Total number processed: 0
> gpg:   imported: 1
> gpg: Can't check signature: public key not found

It was reported in https://www.ritlabs.com/bt/view.php?id=2442&nbn=8 .

> Is there anyway to get around this?

Insert the following in gpg.conf file.

no-default-keyring

-- 

Best regards,
  omn


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