decryption issue!

Hi,

Something bizarre is happening while decrypting the files. I had a decrypt script which was working smoothly on

uname -a
Linux ######### 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:33:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

After the front-end application was moved to

uname -a
Linux #########  2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

The decryption script started failing with the error :

gpg: encrypted with ELG-E key, ID AAAAAAAA
gpg: decryption failed: secret key not available

The keys are correct i.e. encryption private key & decryption public key. Please suggest.

-dips

Are you sure you've copied the complete key (private and public). Because the private key is used to decrypt, and the public to encrypt. You can check that by running gpg -K . You can export the private key using gpg --export-secret-key -a uid > file

Hi Pludi,

I might have worded it wrong.

But I am sure that the keys are correct because after the linux upgradation; we were able to decrypt files for once. But after that day the script's been failing displaying the same error again & again for the reason we couldn't fathom! My supervisor thinks it could be an environment issue. Please suggest.

-dips