Is there a GnuPG command that shows the number of keys on a keyring?

2012-07-24 Thread MFPA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Is there a GnuPG command to show the number of keys on a keyring? Or one which includes this as part of its output? I have looked through the gpg.man file and also at the output from gpg --dump-options for this and nothing leaps out at me. I k

Re: Is there a GnuPG command that shows the number of keys on a keyring?

2012-07-24 Thread Robert J. Hansen
On 7/24/2012 4:33 AM, MFPA wrote: > Is there a GnuPG command to show the number of keys on a keyring? On Linux, FreeBSD, OS X, etc., you can do: $ gpg2 --list-keys|grep "^pub"|wc -l ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.

Re: Is there a GnuPG command that shows the number of keys on a keyring?

2012-07-24 Thread Charly Avital
Robert J. Hansen <500e5f28.4010...@sixdemonbag.org> July 24, 2012 4:43:58 AM wrote: > On Linux, FreeBSD, OS X, etc., you can do: > > $ gpg2 --list-keys|grep "^pub"|wc -l I've got 1618, some serious and urgent cleaning is required. Thank you Robert. Charly _

Re: Is there a GnuPG command that shows the number of keys on a keyring?

2012-07-24 Thread Werner Koch
On Tue, 24 Jul 2012 10:39, r...@sixdemonbag.org said: > $ gpg2 --list-keys|grep "^pub"|wc -l In case you want to put this into a HOWTO, you better write: gpg2 --with-colons --list-keys|grep "^pub:"|wc -l As usual this also works with gpg. Shalom-Salam, Werner -- Die Gedanken sind frei

asymmetry of 'adduid' and 'deluid'

2012-07-24 Thread vedaal
Recently added a uid and deleted a uid to one of my keys. Found that to add a uid, gnupg asks for the passphrase, but to delete a uid, it does not. (Doesn't really matter much, since the secret key is required for both, but was curious if there is any underlying reason why gnupg does it this w

Re: asymmetry of 'adduid' and 'deluid'

2012-07-24 Thread Daniel Kahn Gillmor
On 07/24/2012 09:58 AM, ved...@nym.hush.com wrote: > Recently added a uid and deleted a uid to one of my keys. > > Found that to add a uid, gnupg asks for the passphrase, but to > delete a uid, it does not. > > (Doesn't really matter much, since the secret key is required for > both, > but was

Re: asymmetry of 'adduid' and 'deluid'

2012-07-24 Thread David Shaw
On Jul 24, 2012, at 9:58 AM, ved...@nym.hush.com wrote: > Recently added a uid and deleted a uid to one of my keys. > > Found that to add a uid, gnupg asks for the passphrase, but to > delete a uid, it does not. > > (Doesn't really matter much, since the secret key is required for > both, > bu

asymmetry of 'adduid' and 'deluid' // my mistake, sorry ;-(

2012-07-24 Thread vedaal
'Doesn't really matter much, since the secret key is required for both,' sorry, my mistake, to remove a uid, doesn't require the secret key, (probably done this way to maken it easier for users to manage their public keyrings) vedaal ___ Gnupg-use

Re: asymmetry of 'adduid' and 'deluid'

2012-07-24 Thread Werner Koch
On Tue, 24 Jul 2012 15:58, ved...@nym.hush.com said: > Found that to add a uid, gnupg asks for the passphrase, but to > delete a uid, it does not. For “adduid” we need to a create a user-id binding signature (self-signature) and thus need the secret key and in turn the passphrase. “deluid” simp

charset weirdness with non-ascii User IDs

2012-07-24 Thread Daniel Kahn Gillmor
Hi folks-- i'm seeing some strange behavior with the keyservers on GNU/Linux systems that don't have a UTF-8 locale, or when LANG is set to something non-UTF8: 0 dkg@pip:~$ LANG=C gpg --keyserver keys.mayfirst.org --search '=Andrew Lee (李 健秋) ' gpg: searching for "=Andrew Lee (æå¥ç§) " from hkp

Re: Is there a GnuPG command that shows the number of keys on a keyring?

2012-07-24 Thread MFPA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi On Tuesday 24 July 2012 at 9:39:04 AM, in , Robert J. Hansen wrote: > On 7/24/2012 4:33 AM, MFPA wrote: >> Is there a GnuPG command to show the number of keys on a keyring? > On Linux, FreeBSD, OS X, etc., you can do: > $ gpg2 --list-keys|gr

Re: GPG key to authenticate to SSH?

2012-07-24 Thread Jeroen Budts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/23/2012 10:01 AM, Werner Koch wrote: > On Sun, 22 Jul 2012 21:52, jer...@budts.be said: > >> Is it somehow possible to 'automatically' use my GPG subkey for >> SSH session when I'm using GPG-Agent? Or am I missing something >> here? > > Ins

Re: KeePass or any other password wallet to store and transport keys

2012-07-24 Thread Faramir
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 El 22-07-2012 19:39, antispa...@sent.at escribió: > On Sun, Jul 22, 2012, at 16:25, Doug Barton wrote: ... >> Your private key is encrypted, right? Use a strong password for >> that and you're in fine shape. > > Yes, security through obscurity. A po

Re: KeePass or any other password wallet to store and transport keys

2012-07-24 Thread Faramir
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 El 22-07-2012 16:52, Robert J. Hansen escribió: > On 7/22/2012 12:12 PM, Faramir wrote: >> If your secret key is password protected, placing it inside a >> keepass file would add a second (maybe unneeded) layer of >> protection, and you can chose a d

Re: KeePass or any other password wallet to store and transport keys

2012-07-24 Thread Robert J. Hansen
On 7/24/2012 10:21 PM, Faramir wrote: > Clearly I'm out of my league there. I had heard about that, but later > I also heard about stacking different algos (with different keys of > course) to increase security. I'm unaware of any reputable reference that recommends this practice. That's not to sa