Output of gpg --encrypt
Booterbaugh, Nancy A.
Mon Jan 21 15:46:01 2002
Thanks to all for your help!
I tried --output, and it does work (even though I am on a Windows =
From: Ingo Kl=F6cker [mailto:firstname.lastname@example.org]
Sent: Friday, January 18, 2002 6:49 PM
Subject: Re: Output of gpg --encrypt
-----BEGIN PGP SIGNED MESSAGE-----
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
> 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
> <email@example.com> gpg: DSA signature from: D6E9F5DB AIT Unisys
> <firstname.lastname@example.org> Return code=3D0
> 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=20
(resp. DSA/ElGamal) key for encryption then the "primary key" can't be=20
used (or shouldn't be used) for encryption because it's a DSA key. The=20
"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
gpg --recipient TBG -se testfile.txt -o testfile.txt.gpg=20
as Steve suggested or use
gpg --recipient TBG -se <testfile.txt >testfile.txt.gpg=20
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
Gnupg-users mailing list