gpg New Bee

Rasoul Hajikhani
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

gpg: Warning: using insecure memory!
gpg: encrypted with 1024-bit ELG-E key, ID 0C18F568, created 2002-03-22
      "test this <>"
gpg: encrypted with 1024-bit ELG-E key, ID 23DCC2F8, created 2002-03-22
      "rasoul <>"

gpg: decryption failed: secret key not available
gpg: [don't know]: invalid packet (ctb=36)
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

Can you tell me what is going on?

thanks in advance