How to decide which private key to use??
Ramon F Herrera
ramon at jonjay.com
Mon Dec 6 02:16:31 CET 2004
I am using the GPGme library to write a program that will
decrypt many files prorgamatically. The files to be decrypted
have been encrypted with exactly one out of three keys.
When I decrypt those files interactively, gpg shows me what
key(s) was used and I type the passphrase corresponding to that
particular key. The problem is, I am not sure how to replicate
that behavior within a program:
- should I keep on trying our 3 corporate private keys
(passphrases) until one of them works? (trial and error)
- is there any way to request the key from the file,
in advance, and use the corresponding passphrase?
-Ramon F Herrera
More information about the Gnupg-devel