Re: Decryption Fails on UserName but not on EmailAddress ???
On Tuesday 29 September 2009, nschroth wrote: Interesting. The key is not listed twice, but... --list-keys PrimaryUserName shows ALL THREE keys while --list-keys PrimaryEmailAddress shows only the primary host key. Could it be that the name I used for the primary key was CompanyName and the email addresses for all the people had that as their domain (ex: b...@companyname.com) ??? Makes sense. gpg --list-keys foo will list all keys where one of the user IDs contains the three letters foo (substring match). Please read the section HOW TO SPECIFY A USER ID in the manual page of gpg (man gpg) for the different possibilities to specify what key(s) to use for some operation with gpg. Regards, Ingo signature.asc Description: This is a digitally signed message part. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Decryption Fails on UserName but not on EmailAddress ???
Interesting. The key is not listed twice, but... --list-keys PrimaryUserName shows ALL THREE keys while --list-keys PrimaryEmailAddress shows only the primary host key. Could it be that the name I used for the primary key was CompanyName and the email addresses for all the people had that as their domain (ex: b...@companyname.com) ??? nschroth wrote: I have been reading previous posts on this topic but have not found my answer. When I ENcrypt on BoxA using -r UserName, decryption on BoxB errors with : decryption failed: secret key not available. However, doing the same test using the email address associated with the recipient, Decryption WORKS. Can anyone offer some reasons for this? Did we gen or export or import the key incorrectly? -- View this message in context: http://www.nabble.com/Decryption-Fails-on-UserName-but-not-on-EmailAddress-tp25577787p25661872.html Sent from the GnuPG - User mailing list archive at Nabble.com. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Decryption Fails on UserName but not on EmailAddress ???
Hello nschroth ! nschroth nschr...@fuse.net wrote: I have been reading previous posts on this topic but have not found my answer. When I ENcrypt on BoxA using -r UserName, decryption on BoxB errors with : decryption failed: secret key not available. However, doing the same test using the email address associated with the recipient, Decryption WORKS. Can anyone offer some reasons for this? Did we gen or export or import the key incorrectly? May be there are two similar usernames or part of them in your keyring. -- Laurent Jumet KeyID: 0xCFAF704C ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Decryption Fails on UserName but not on EmailAddress ???
David, On the target (recipient) machine: --list-keys shows my Primary Key, My desktop Key and a co-worker's desktop key --list-secret-keys shows only my Primary Ke --list-keys PrimaryKeyUserName it only lists my primary key. This has happen when a file was encrypted from EITHER my desktop or mycoworker's desktop. Nelson David Shaw wrote: On Sep 25, 2009, at 7:19 PM, nschroth wrote: I have been reading previous posts on this topic but have not found my answer. When I ENcrypt on BoxA using -r UserName, decryption on BoxB errors with : decryption failed: secret key not available. However, doing the same test using the email address associated with the recipient, Decryption WORKS. It sounds like you have two keys. When you use -r username you're matching one of them. When you use -r emailaddr...@example.com you're matching the other one. Check your keyring to be sure: do a gpg --list-keys username to see all keys that match that name. David ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users -- View this message in context: http://www.nabble.com/Decryption-Fails-on-UserName-but-not-on-EmailAddress-tp25577787p25625892.html Sent from the GnuPG - User mailing list archive at Nabble.com. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Decryption Fails on UserName but not on EmailAddress ???
On Sep 25, 2009, at 7:19 PM, nschroth wrote: I have been reading previous posts on this topic but have not found my answer. When I ENcrypt on BoxA using -r UserName, decryption on BoxB errors with : decryption failed: secret key not available. However, doing the same test using the email address associated with the recipient, Decryption WORKS. It sounds like you have two keys. When you use -r username you're matching one of them. When you use -r emailaddr...@example.com you're matching the other one. Check your keyring to be sure: do a gpg --list-keys username to see all keys that match that name. David ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users