>As far as I'm concerned the Key ID is a complete waste of time unless a
>lookup is being made on a server that is automatically decrypting each
>message. This is OK here because you can configure the database to store
>the Key ID and that makes lookups easier (if there are no duplicate Key
>ID's). From my understanding of the Public and Private Keyring
>structures, you can only have a Key ID for the highest level key (self
>sig.) and cannot store the Key ID's for the subkeys.
>For our client software, we are not doing lookups via the Key ID (as it
>isn't stored in the public/private keyrings), however the server version
>will support lookups via Key ID's.
>We have found it better just to do lookups via the User ID - at least you
> can store that within the private /public keyring structures.
>If anyone can tell me otherwise regarding the storage of Signing and
>Encryption Key ID's within the private/public keyrings, it would be
>great.
IMHO using the userID is *not* the way to go. While userID lookups
can be used the first time you are encrypting a message to a new e-mail
address precautions need to be made. A dialog between the user should be
established to verify that this is the actual key that should be used
(anyone can create a key with any userID, multiple keys with the same
userID may be present, ...ect).