importing large keyring

2005-04-20 Thread Sascha Silbe
Hi!
Recently (somewhere around the update from gnupg 1.2.x to 1.4.x) my 
keyring got corrupted:

[EMAIL PROTECTED]:~$ gpg --export  /dev/null
gpg: buffer shorter than subpacket
gpg: signature packet without timestamp
gpg: buffer shorter than subpacket
gpg: signature packet without keyid
gpg: buffer shorter than subpacket
[...]
However, most of the keys are still OK, so I'd like to use the output of 
gpg --export to re-create the keyring.
The keyring is rather large (70MB) and after importing several thousand 
keys gpg uses more memory than is available as physical RAM, so it's 
continously swapping. After 2 days without significant progress I've 
aborted the import.
Is there a way to split up the keydump into chunks of some thousand 
keys, so I can process those one after another?

CU Sascha
--
http://sascha.silbe.org/


pgpAxHasRWHdZ.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: OpenPGP Smartcard with Cygwin

2005-04-20 Thread Werner Koch
On Thu, 31 Mar 2005 16:20:29 +0200, Peter L Smilde said:

 I tried installing pcsc-lite from their website, but this only installs
 a libpcsclite.a and libpcsclite.la.

 How do I get the Smartcard working under Cygwin? I found no information
 on this topic (OpenPGP smartcard cygwin) in the web.

You may want to try the option

--pcsc-driver winscard.dll

Not sure whether this works.  Better use a plain gpg build for
Windows.

 Under Windows itself the OpenPGP card works fine. (Except, that when no
 card is inserted in the (SCR335) card reader while signing an error
 window pops up telling that Die Anweisung in 0x7c9211de veweist auf
 Speicher in 0x Der Vorgang read konnte nicht auf dem

I have done some debugging and it seems that it is indeed a driver
problem.


Salam-Shalom,

   Werner


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


GNUPG library for C#?

2005-04-20 Thread Alan Zak
Hello, I am new to C# coding.  I have managed to create a console
application which opens a process (ProcessStartInfo, etc) to run the gpg.exe
with a given set of arguments.

I would love to be able to eliminate the usage of the EXE, and instead
integrate GPG's functionality in the form of a DLL or COM object.

I've scoured the web via Teoma and Google, and have found a few references
to people who have written their own wrappers to incorporate GPG
functionality without reliance on the EXE.  Unfortunately these led to dead
or stale links, and further I have never created my own wrapper in the way
these folks describe.

If I might find this info by searching the archives please let me know,
otherwise if someone could please direct me to some helpful info I would be
most appreciative.

Thank you!

-- Alan



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


Re: GNUPG library for C#?

2005-04-20 Thread Sascha Kiefer
http://www.codeproject.com/csharp/gnupgdotnet.asp might help!
HTH
esskar
Alan Zak schrieb:
Hello, I am new to C# coding.  I have managed to create a console
application which opens a process (ProcessStartInfo, etc) to run the gpg.exe
with a given set of arguments.
I would love to be able to eliminate the usage of the EXE, and instead
integrate GPG's functionality in the form of a DLL or COM object.
I've scoured the web via Teoma and Google, and have found a few references
to people who have written their own wrappers to incorporate GPG
functionality without reliance on the EXE.  Unfortunately these led to dead
or stale links, and further I have never created my own wrapper in the way
these folks describe.
If I might find this info by searching the archives please let me know,
otherwise if someone could please direct me to some helpful info I would be
most appreciative.
Thank you!
-- Alan

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


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


Re: importing large keyring

2005-04-20 Thread Jason Harris
On Wed, Apr 20, 2005 at 02:17:31PM +0200, Sascha Silbe wrote:

 Recently (somewhere around the update from gnupg 1.2.x to 1.4.x) my 
 keyring got corrupted:
 
 [EMAIL PROTECTED]:~$ gpg --export  /dev/null
 gpg: buffer shorter than subpacket
 gpg: signature packet without timestamp
 gpg: buffer shorter than subpacket
 gpg: signature packet without keyid
 gpg: buffer shorter than subpacket
 [...]

I've also seen similar corruption recently (with GPG 1.4.1):

  %gpg --keyserver hkp://keyserver.sascha.silbe.org --recv CA57AD7C
  Host:   keyserver.sascha.silbe.org
  Command:GET
  gpgkeys: HTTP URL is 
`hkp://keyserver.sascha.silbe.org/pks/lookup?op=getoptions=mrsearch=0xCA57AD7C'
  gpg: buffer shorter than subpacket
  gpg: buffer shorter than subpacket
  gpg: signature packet without keyid
  gpg: buffer shorter than subpacket
  gpg: signature packet without timestamp
  gpg: key CA57AD7C: accepted non self-signed user ID [jpeg image of size 
3400]
  gpg: key CA57AD7C: accepted non self-signed user ID [jpeg image of size 
3400]
  gpg: key CA57AD7C: accepted non self-signed user ID [jpeg image of size 
3400]
  gpg: buffer shorter than subpacket
  gpg: buffer shorter than subpacket
  gpg: signature packet without keyid
  gpg: buffer shorter than subpacket
  [snip]


  $gpg -k CA57AD7C
  gpg: buffer shorter than subpacket
  gpg: buffer shorter than subpacket
  gpg: signature packet without keyid
  gpg: buffer shorter than subpacket
  pub   2048R/CA57AD7C 2004-12-06
  uid  PGP Global Directory Verification Key
  uid  [jpeg image of size 3400]
  uid  [jpeg image of size 3400]
  uid  [jpeg image of size 3400]
  uid  [jpeg image of size 3400]


  %gpg --export CA57AD7C  /dev/null
  gpg: buffer shorter than subpacket
  gpg: buffer shorter than subpacket
  gpg: signature packet without keyid
  gpg: buffer shorter than subpacket

NB:  I set allow-non-selfsigned-uid in ~/.gnupg/options, but you
probably don't, and we're seeing most of the same errors.

 However, most of the keys are still OK, so I'd like to use the output of 
 gpg --export to re-create the keyring.
 The keyring is rather large (70MB) and after importing several thousand 
 keys gpg uses more memory than is available as physical RAM, so it's 
 continously swapping. After 2 days without significant progress I've 
 aborted the import.

(Out of curiosity, what do you plan to have GPG do with the keys
once they're imported?)

I often work with keys dumped straight from pks without doing a
gpg --import on them.  You should be able to do the same with
SKS.

-- 
Jason Harris   |  NIC:  JH329, PGP:  This _is_ PGP-signed, isn't it?
[EMAIL PROTECTED] _|_ web:  http://keyserver.kjsl.com/~jharris/
  Got photons?   (TM), (C) 2004


pgphzj34kMbJz.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Cant create directory error

2005-04-20 Thread Carlos M
Hi there im having problems trying to decrypt a message using PHP or
Perl. When i run the perl script directly from the linux bash it works
just fine, but when i run the script from the browser it doesnt work.
Checkin the apache logs it says:

Name main::passphrase used only once: possible typo at
/usr/local/apache/cgi-bin/decrypt.pl line 10.
gpg: fatal: ~/.gnupg: can't create directory: No such file or directory

I create the keys using root as user. I got the .gnupg directory on
/root with the correct keys in there. I have the correct keys in my
local repository. I dont know what im doing wrong.

My gpg version is 1.4.1

Any help would be useful.

Thanks a lot.

Carlos Andres Medina

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


Re: 1.4.1 won't retrieve key from keyserver?

2005-04-20 Thread Jason Markley
David,
   Has this issue been fixed?  Here's a recap of what I've observed.  
I'm using TB 1.0.2 and gpg 1.4.1 (for windows, obviously) :)

---
behavior when searching for keys using GPG 1.4.1 from the command line:
hkp: searches and finds it, but doesn't import the key. can't find a 
valid key block.  taking the 'openpgp' option out of the gpg.conf file 
fixes this.

ldap: searches and finds the key, and is able to import the key.  it 
works both with and without the 'openpgp' option.

http: gpgkeys says that this type of server only supports importing 
keys.  I can't get importing to work, with or without the 'openpgp' option.

-Jason
Jason Markley wrote:
David Shaw wrote:
That said, keyserver imports on W32 should work with --openpgp set as
well.  I will fix that.
 

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

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


Re: Rescue secring

2005-04-20 Thread Erpo
On Wed, 2005-04-20 at 00:16 +0200, Philipp Neuhaus wrote:
 Does gpg have a fault-tolerant mode or do you know about any keyringtool
 that may repair my dumps?

My sympathy goes out to you. Most people don't back up, probably because
of the disparity between hard drive sizes and backup media; I know I
don't want to make a stack of 40 DVD-Rs every week. Once in a while we
all get bitten.

As for your GPG problem, I can't offer you much help. I remember hearing
about a feature that would help you regenerate your public key from your
private key, but you're going to need your private key in order to do
that. You're probably not going to get your keys back.

As far as generating and passing out a revocation, it's probably not
necessary. All a revocation does is tell poeple who have your key not to
trust any further messages signed by that key, and you're already going
to be able to do that when you start distributing your new public key to
your friends.


Eric




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


Re: importing large keyring

2005-04-20 Thread Gerhard Siegesmund
Hello all

  Recently (somewhere around the update from gnupg 1.2.x to 1.4.x) my 
  keyring got corrupted:
  [EMAIL PROTECTED]:~$ gpg --export  /dev/null
  gpg: buffer shorter than subpacket
  [...]
 I've also seen similar corruption recently (with GPG 1.4.1):
   %gpg --keyserver hkp://keyserver.sascha.silbe.org --recv CA57AD7C
   Host:   keyserver.sascha.silbe.org
   Command:GET
   gpgkeys: HTTP URL is 
 `hkp://keyserver.sascha.silbe.org/pks/lookup?op=getoptions=mrsearch=0xCA57AD7C'
   gpg: buffer shorter than subpacket
[...]

This seems to be a common problem? I recently found the same errors, but
didn't care about them. Is is something I should be concerned about?

-- 
cu
  --== Jerri ==--
Homepage: http://www.jerri.de/   ICQ: 54160208
Public PGP Key: http://www.jerri.de/jerris_public_key.asc


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


Gvim and gpg

2005-04-20 Thread Greg Bell

Hi GPG users,

I've successfully used gpg from vim for years, using the autocmds easily
found with google.

However, when using gpg from gvim, I get this:

   :!gpg --symmetric
   gpg: cannot open `/dev/tty': No such device or address

   shell returned 2

If I try the --no-tty option:

   :!gpg --symmetric --no-tty
   gpg: Sorry, no terminal at all requested - can't get input

   shell returned 2


Root privs, setuid, etc. don't work.  And my /dev/tty device is there and
working:

   $ ls -l /dev/tty
   crwxrwxrwx  1 root root 5, 0 Apr 20 19:48 /dev/tty


Anybody have any idea why it doesn't work?  Again, it works with the
normal vim client.


Thanks much,

-- 
Greg Bell

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