Output of gpg --encrypt

Ingo Klöcker ingo.kloecker@epost.de
Sat Jan 19 01:03:01 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 18 January 2002 23:21, Booterbaugh, Nancy A. wrote:
> I am converting from PGP to gpg on Windows 2000, and have run into a
> little snag.  I am encrypting a file with the following command:
>
> gpg --recipient TBG -se testfile.txt  1>testfile.txt.gpg
> 2>>encryptGPG020118.log
>
> I expected the encrypted file to be named testfile.txt.gpg, but the
> resulting file was empty.  When I looked in the directory, I saw that
> a second file was created and named testfile.gpg - and that file, in
> fact, was the encrypted output!  When I looked in
> encryptGPG020118.log, I saw the following:
>
> gpg: using secondary key 870318E1 instead of primary key D6E9F5DB
> gpg: This key probably belongs to the owner
> gpg: writing to `testfile.gpg'
> gpg: ELG-E/CAST5 encrypted for: 9AE18FE8 TBG-EDI
> <dc@tbgfinancial.com> gpg: DSA signature from: D6E9F5DB AIT Unisys
> <webmethods@unisys.com> Return code=0
>
> Both my AIT Unisys key pair and the TBG-EDI public key are originally
> from PGP.
> My questions:
> 1) How do I make the keys the "primary key"?  Or does it matter?

Actually the "secondary key" has to be used because if you use a DSS 
(resp. DSA/ElGamal) key for encryption then the "primary key" can't be 
used (or shouldn't be used) for encryption because it's a DSA key. The 
"secondary key" is an ElGamal key and this one is used for encryption.

> 2) What does "gpg: This key probably belongs to the owner" mean?
> 3) Why is the encrypted output going to testfile.gpg instead of
> testfile.txt.gpg?

Either use
gpg --recipient TBG -se testfile.txt  -o testfile.txt.gpg 
2>>encryptGPG020118.log
as Steve suggested or use
gpg --recipient TBG -se <testfile.txt >testfile.txt.gpg 
2>>encryptGPG020118.log

Regards,
Ingo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8SLSUGnR+RTDgudgRAm1AAJ9Pt0matJ7xj0in3xi9bBUCvLun5wCdEgeg
kOmzwUuk/kFCGuaP0GWvGr8=
=jrZv
-----END PGP SIGNATURE-----