gpg New Bee
Rasoul Hajikhani
rasoul@rhythm.com
Sun Mar 24 00:38:02 2002
NirinaMichel Ratoandromanana/DS-INFO wrote:
>
> >%gpg -u <UID> --decrypt myTest1.gpg
> >It keeps asking for my pass phrase and not that of the "test" user pass
> >phrase.
>
> If I understand your problem, this is a suggested solution when you have a
> file encrypted for multiple recipient. I don't know if this is a bug or
> not but when decrypting, gpg ALWAYS use the first user in the secring.gpg
> file even if you specify the user with -u option.
>
> %gpg --export-secret-keys <UID> > gpgtemp.asc
> %gpg --no-default-keyring --secret-keyring gpgtemp.asc --decrypt
> myTest1.gpg
>
> I hope this helps you.
Thanks for responding. I tried your solution but I am afraid I get an
error:
gpg: Warning: using insecure memory!
gpg: encrypted with 1024-bit ELG-E key, ID 0C18F568, created 2002-03-22
"test this <test@rhythm.com>"
gpg: encrypted with 1024-bit ELG-E key, ID 23DCC2F8, created 2002-03-22
"rasoul <rasoul@rhythm.com>"
gpg: decryption failed: secret key not available
[
gpg: [don't know]: invalid packet (ctb=36)
or
gpg: decrypt_message failed: unexpected data
]
The command that I used was:
%gpg --output myTest.gpg --encrypt -r rasoul -r test1 myTest.txt
%gpg --export-secret-keys [test1 || uid] > gpgtemp.asc
%gpg --no-default-keyring --secret-keyring gpgtemp.asc --decrypt
myTest.gpg
Can you tell me what is going on?
thanks in advance
-r