Encrypting a file

Thomas Chitwood tchitwoo at us.ibm.com
Tue Oct 19 21:57:16 CEST 2010

Thanks for the info Doug. I don't think I have ever encrypted a file with 
more than one key. Would the command be something like the example below?

gpg --output test.txt.gpg --encrypt --recipient 359B3EB2 DAE72D59 test.txt 
(where 359B3EB2 is their key and DAE72D59 is our key)

Tom Chitwood
Wellpoint Account
Information Technology Services Americas
Global Services, IBM

Doug Barton <dougb at dougbarton.us>
gnupg-users at gnupg.org
10/19/2010 09:56 AM
Re: Encrypting a file
Sent by:
gnupg-users-bounces at gnupg.org

On 10/19/2010 9:50 AM, Thomas Chitwood wrote:
> I have a customer that wants me to send him my public key

Perfectly valid. That's why it's called the "public" key.

> and then
> encrypt a file that I am sending to him with my private key. Is this
> even possible?

Sounds like a minor misunderstanding on his part. You sign a message 
with your private key, he verifies the signature with your public key. 
You encrypt messages TO public keys (your and his) and then you each use 
your private keys to decrypt them.

If I were in your shoes I'd simply encrypt the file to my key and his, 
and send it to him. Chances are excellent that it will all work 
according to plan.

Good luck,



Breadth of IT experience, and    |   Nothin' ever doesn't change,
depth of knowledge in the DNS.   |   but nothin' changes much.
Yours for the right price.  :)   |                               -- OK Go

Gnupg-users mailing list
Gnupg-users at gnupg.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20101019/972c075e/attachment.htm>

More information about the Gnupg-users mailing list