Fedora iTOps Tube

Monday, May 7, 2012

GPG Problem

Hi All,

I dont know what i am doing wrong, but i am facing a problem while decrypt gpg encrypted file , Below is the step of what is was doing.


# gpg --gen-key => Generate GPG key

# gpg --export --armor keyname > output.key => take gpg key to output.key

#gpg --encrypt --armor --recipient recptname filename =>encrypt file for recipient

# scp output.key => 10.2 is my client system where i copy my output gpg key

scp filename.asc => copy the excrypted file to my client system


# cd /root/key

# gpg --import output.key => import server gpg key to my client system

# gpg filename.key => Try to decrypt but fail and getting the below error message

gpg: encrypted with 1024-bit ELG-E key, ID 05ABA7C9, created 2012-05-07

"Ashish <ashish_sood@live.in>"

gpg: decryption failed: secret key not available

It telling me that secret key is not available but its is available on my system, below is the output from my client system

# gpg --list-key

pub 1024D/34E9A260 2012-05-07

uid Ashish <ashish_sood@live.in>

sub 1024g/05ABA7C9 2012-05-07

Guys please tell me what is wrong in this . hope to get your reply ASAP


Ashish Sood

No comments:

Post a Comment