decryption issue!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting decryption issue!
# 1  
Old 09-23-2010
decryption issue!

Hi,

Something bizarre is happening while decrypting the files. I had a decrypt script which was working smoothly on
Code:
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
Code:
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 :
Code:
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
# 2  
Old 09-23-2010
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
# 3  
Old 09-23-2010
Hi Pludi,

I might have worded it wrong.
Quote:
The keys are correct i.e. encryption private key & decryption public key.
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Gpg (GnuPG) encryption and decryption

Hi Friends, There are some 7 years script in out linux server. I am trying to understand them since Linux Server changed(A). Below line in one of the encrypting script. Here scenario is encrypting bank files in our (A) server and doing Secure Copy to Server (B). GPG -v --batch --yes --armor... (1 Reply)
Discussion started by: johnsnow
1 Replies

2. HP-UX

Decryption of files on HP-UX servers?

I am pulling a file from sfdc to HP-UX servers. But in HP-UX servers, the file data shows encrypted. Can anyone tell me how to decrypt them? The file data is like- ... (1 Reply)
Discussion started by: saga20
1 Replies

3. Shell Programming and Scripting

String encryption and decryption

Hello All, There are so many questions on this and I didn't find any concluded answer. I want to encrypt a string in the script, actually this is a password. I tried using openssl (I am a newbie to openssl), but it is generating a long one which we can't remember. I want to encrypt the... (5 Replies)
Discussion started by: karumudi7
5 Replies

4. UNIX for Dummies Questions & Answers

decryption of .cpt file

Hi i have the path for encrytion file in unix and i want to decrypt the .cpt file in unix and change the password how can i do that . (3 Replies)
Discussion started by: lily
3 Replies

5. Programming

Write own decryption application

Hi , I need some help as I dont know where to start. I need to create a unix decryption application. The information I have been given is this so far: the specification of the encryption process is: NET 2 Cryptography classes. RijndaelManaged encryption algorithm ... (13 Replies)
Discussion started by: caciing_help
13 Replies

6. Shell Programming and Scripting

unix Script for decryption

how to decrypt a file using unix Scipts . i am using one code that is working in the manual testing... echo $pass_phrase|gpg --output $filename_DEx --batch --passphrase-fd 0 --decrypt $filename_DEx_enc in the informatica level its not working.. can anybody help me in this? thanks... (1 Reply)
Discussion started by: rajesh_pola
1 Replies

7. Shell Programming and Scripting

Password decryption

Hi, I don't know if I am in a correct category with my question. I want to know what decryption-method is used for this password: (1) The first stadium is (its stored in the settings.xml of my software):... (2 Replies)
Discussion started by: Mogli1977
2 Replies

8. UNIX for Advanced & Expert Users

decryption using digital certificate

A client application is encrypting a text using private key and sends through socket. My application(server written in c/c++,unix) receives the chiper-text through socket. I have client's digital certificate. now, how do I decrypt(may be using openssl library) this ciper-text using client's... (1 Reply)
Discussion started by: johnbach
1 Replies

9. UNIX for Dummies Questions & Answers

File Encryption and Decryption in UNIX.

Hello guys ! I have used "crypt <first> second" command to encrypt "first" to "second" file. i have assign a key for that of course. Now when i try to look content of "seocnd" file through "cat second" command, the file is encrypted and cannot be read which is according to plan. But when... (3 Replies)
Discussion started by: abidmalik
3 Replies

10. UNIX for Dummies Questions & Answers

Decryption software

whats the most sufficient way to make decryption software? What are the recoomendations for one? (3 Replies)
Discussion started by: Phatress
3 Replies
Login or Register to Ask a Question