On Wed, Jun 30, 2010 at 03:12:06PM +0530, Rahul R wrote:
> Hi GPG Experts,
> 
> I have a request from one of my client that they need me to digitally sign
> their files in my server with my gpg key after encrypting it with their key.
> I am not familiar with this. ie encrypting a file with a key and digitally
> sign it with another key.
> 
> The process that we are trying to perform is to encrypt the file with the
> customer’s public key and then sign the file with our private key.
> 
> Can any body from this group help me in finding a way?

Take a look at the gpg2 documentation - the manual page says and even has
an explicit example of using both the -s and the -e options:

       gpg -se -r Bob file
              sign and encrypt for user Bob

Of course, you can point to a more specific recipient's key by giving either
an e-mail address or, better yet, a key ID instead of "Bob" to the -r option;
and you can specify which key to sign with using the -k option if you have
more than one secret key on the GnuPG installation where you're running this.

Hope this helps.

G'luck,
Peter

-- 
Peter Pentchev  r...@space.bg    r...@ringlet.net    r...@freebsd.org
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If you think this sentence is confusing, then change one pig.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to