?
Solved

Why does PGP lock its keyrings?

Posted on 2005-05-17
2
Medium Priority
?
196 Views
Last Modified: 2010-04-11
I am trying to run 2 script-based data transfer jobs. The files transferred are sent to a remote Ftp site and are therefore encrypted in the scripts. Problem is... if the two jobs begin running at the same time and are set up to use the same private key to encrypt, one of them fails. It seems that PGP locks the key when it is using the key for encryption. Any ideas? Is there a work-around? We have a real setup with many such jobs and have encountered this problem.
0
Comment
Question by:kerzner
2 Comments
 
LVL 27

Accepted Solution

by:
Tolomir earned 2000 total points
ID: 14023033
You could create a temp folder for each job using encryption via pgp

E.g. jobA copies the original pgp keyring to programs\jobA\temp
advises pgp by comand line option to use the keyking in the obove folder
after work is done deletes the copy...

Or you could use some kind of mutual exclusion like a file that only exists if no job is currently running.

E.g. as pseudo batchfile

@echo off
:start
if not exists pgpunused.txt goto sleep
del pgpunused.txt
<<make some pgp operations>>
echo 1 > pgpunused.txt
goto end

:sleep
sleep 10
goto start

:end
----

Here is the sleep command available: http://malektips.com/xp_dos_0002.html

Tolomir

   
0
 
LVL 1

Author Comment

by:kerzner
ID: 14027143
Tolomir, thanks for your help. I will use one of these two approaches. Thanks!

Boris.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like me and like multiple layers of protection, read on!
When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question