Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

Decryption through an Oracle concurrent program

Created: 01 Apr 2014 • Updated: 07 May 2014 | 8 comments
This issue has been solved. See solution.

I have searched the forum for the error we are receiving (1080:no private key could be found for decryption) and the scenarios are for movement between two servers.  My scenario is the following:

Keypair created on development server.  Both encrypt and decrypt commands work perfectly at the command line.

When trying to decrypt by running the script as a concurrent program, we are getting the 1080 error.  I can cut and paste the exact line to the command line and it works perfectly: /opt/pgp/bin/pgp --decrypt HSA_OpenBankAccounts.csv.pgp --passphrase "Dev Password"

So for our development work, we are just doing the encrypt/decrypt on the same box.  I can run an ecrypt through the concurrent program without problems.  Can someone please try to point me in the right direction?

Using PGP Command Line 10.3.1 build 12070

Operating Systems:

Comments 8 CommentsJump to latest comment

Alex_CST's picture

Have you imported the relevant public key onto this other box?  If I understand the issue you can encrypt and decrypt on the originating box, but when its transmitted over to the other box you cannot decrypt?

Please mark posts as solutions if they solve your problem!

http://www.cstl.com

sdhalepaska's picture

No, everything is running on the same box.  I can encrypt/decrypt from the command line on the same box without issue.  I can encrypt with my concurrent program without issue.  It is only the decrypt portion that fails when run as a concurrent program.

Alex_CST's picture

Oh I see.  That's very strange.  Is it running from a different directory?  Are you using the pgp as an environment variable?

Please mark posts as solutions if they solve your problem!

http://www.cstl.com

sdhalepaska's picture

All the data is in the same directory and both scripts are piece of a single master script with multiple functions.  PGP is not setup as an environment variable.  Not sure what is going on.

dcats's picture

Hi sdhalepaska,

I'm not sure about this, but here it goes...
Can you create another keyring (with that keypair inside) for being used by that program?
I think the issue is related with some lock on the private key.

HTH,
dcats

sdhalepaska's picture

If there was some issue with the private key, wouldn't the decrypt fail to work at the command line also?

dcats's picture

Hi sdhalepaska,

My suggestion was related with your mention of a concurrent program. When you encrypt you use a public key, "available to everyone" and which doesn't need passphrase, for instance.
However, decryption requires an unlocked private portion of the keypair and this is where I think an access lock can/could be happening.

HTH,
dcats

SOLUTION
sdhalepaska's picture

OK, not sure what was going on but going off of dcat's idea that something was locking(?!) the private key, I removed the key pair completely and regenerated.  It is working now.  Thanks for everyone's time.