Unable to find secret key

Prashanth Mohan prashmohan at gmail.com
Thu Sep 7 14:23:46 CEST 2006


Hello,

I am able to encrypt my messages using GPG, but i am not able to decrypt
them. I have only 1 secret key in my keyring. I also tried passing the
keyid with the decrypt command. It still says it cant find my secret
key. What am I doing wrong?


/tmp$ gpg -K
/home/prash/.gnupg/secring.gpg
------------------------------
sec   1024D/E4B6F212 2005-07-01
uid                  Prashanth Mohan <prashmohan at gmail.com>
uid                  Prashanth Mohan <prash086 at myrealbox.com>
uid                  Prashanth Mohan <guyfromchennai at hotmail.com>

/tmp$ cat > abc << EOF
> Hello... This is a test for decrypting encrypted text using GPG
> EOF
/tmp$ gpg -ev abc
You did not specify a user ID. (you may use "-r")

Current recipients:

Enter the user ID.  End with an empty line: Prashanth
gpg: using classic trust model
gpg: using subkey 219D771B instead of primary key E4B6F212
gpg: This key belongs to us

Current recipients:
2048g/219D771B 2006-02-02 "Prashanth Mohan <prashmohan at gmail.com>"

Enter the user ID.  End with an empty line:
gpg: reading from `abc'
gpg: writing to `abc.gpg'
gpg: ELG-E/AES256 encrypted for: "219D771B Prashanth Mohan
<prashmohan at gmail.com>"
/tmp$ gpg -vd abc.gpg
gpg: public key is 219D771B
gpg: using subkey 219D771B instead of primary key E4B6F212
gpg: encrypted with 2048-bit ELG-E key, ID 219D771B, created 2006-02-02
      "Prashanth Mohan <prashmohan at gmail.com>"
gpg: decryption failed: secret key not available

Thank You,
-- 
Prashanth Mohan
http://prashblog.com



More information about the Gnupg-users mailing list