- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- trying to batch/cron pgp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 06:02 AM
09-20-2007 06:02 AM
From the command prompt, I can get the following command to work:
pgp -e filename.txt keyuserid
However, it prompts me for Y or N to accept the keyuserid.
I have tried pgp -e +force +batchmode filename.txt keyuserid but it fails on: Encryption error
I should also state that the keyuserid is in my keyring as it works from the prompt, but not in batchmode.
Suggestion?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 07:57 AM
09-20-2007 07:57 AM
Re: trying to batch/cron pgp
you are using. It might also help to see a
transcript showing exactly what you did and
what happened when you got it to work
interactively, and an actual script which
fails, and a transcript showing that failure.
I'd guess that you might get a confirmation
request if the userid were ambiguous (but my
version on VMS seems to run with the first
match it finds, so no bets).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 12:10 AM
09-24-2007 12:10 AM
Re: trying to batch/cron pgp
pgp Version 6.5.8
This is what I execute from the prompt and notice it asks me to confirm Y before proceeding.
gp -e last.log Wachovia
Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.
Recipients' public key(s) will be used to encrypt.
Key for user ID: Bank
1024-bit DSS key, Key ID 0x64016085, created 2002/02/02
WARNING: Because this public key is not certified with a trusted
signature, it is not known with high confidence that this public key
actually belongs to: "Bank
Are you sure you want to use this public key (y/N)?
I have removed the banks name and changed it to bank.com for security reasons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 04:02 AM
09-24-2007 04:02 AM
Solution> certified with a trusted signature, [...]
Sounds as if that's the thing you need to
change.
> [...] Version 6.5.8 [...]
Too new for me, but I'd guess/hope that
there's some mechanism for increasing its
confidence in a particular key. (Or else
of persuading it not to care.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 05:15 AM
09-24-2007 05:15 AM
Re: trying to batch/cron pgp
I got around my problem by using expect to generate a response to the question.
Thanks.
Nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 05:38 AM
09-24-2007 05:38 AM
Re: trying to batch/cron pgp
http://www.acm.org/crossroads/xrds6-5/pgptutorial.html
it appears that you need to "certify" the public key
(Keys, sign)
Note the number following the "-ks" is the Key Id from your message:
$ pgp -ks 0x64016085
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 07:34 AM
09-24-2007 07:34 AM
Re: trying to batch/cron pgp
Yeah. That's the thing.
> [...] using expect [...]
But if a man wants to carry the cat home by
its tail, I say, "Let him."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 07:36 AM
09-24-2007 07:36 AM
Re: trying to batch/cron pgp
However, I need to add permissions to the the batch userid to be able to use the keys and pgp and it is not able to run.
Arrgh.
nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 07:46 AM
09-24-2007 07:46 AM
Re: trying to batch/cron pgp
Is that anything like a problem?
> [...] it is not able to run.
This is not a good description of the
symptom(s).
Not having tried it, I'd assume that one
could make a symbolic link to point one user
to another user's key-ring file. As for
permissions, as I recall, no one cares much
about the public key ring, which is what
you're using here. (It is a _public_ key
ring, after all.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2007 07:28 PM
09-24-2007 07:28 PM
Re: trying to batch/cron pgp
A variable must be defined within your pgp script. This variable is the PGPPASS variable. This precludes the need for a y/n interactive encryption. I belive PGPPASS is set you your keyrings passphrase...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2007 01:32 AM
09-25-2007 01:32 AM
Re: trying to batch/cron pgp
To what? No one is asking for a pass-phrase
here (because he's encrypting, not
decrypting).
> A variable must be defined within your pgp
> script. This variable is the PGPPASS
> variable.
Oh, yeah. The best way to keep a secret is
to store it in a script. Great "solution",
but not for this problem.