- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PGP Encryption and Signing in a script
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
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
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
тАО01-23-2001 10:56 AM
тАО01-23-2001 10:56 AM
PGP Encryption and Signing in a script
I am trying to write a script that will encrypt and sign a file with no input from the user. The encrypt script will be called from an application that is generating EDI Transactions.
The main problem I am having is that PGP signing the encrypted file requires the input of the pass phrase for the key that is being used. That is where my problem lies. I can't get past the pass phrase input request.
Here is what I have tried so far:
/usr/uprc/local/bin/pgpe -r $RECIPIENT1 -r $RECIPIENT2 -s -o $OUTPUTFILE $INPUTFILE << ENDPGP
PGP_KEY_PASSPHRASE
ENDPGP
Here is what it does when I run the script that the above is contained in:
# ./prepare_boa /tmp/pww/refresh_cruella /tmp/pww/refresh_cruella.pgp
Encrypting file /tmp/pww/refresh_cruella into /tmp/pww/refresh_cruella.pgp.
Cannot open configuration file /.pgp/pgp.cfg
A private key is required to make a signature.
Need a pass phrase to decrypt private key:
1024 bits, Key ID XXXXXXXX, Created 2001-01-23
"Key ID
Anyone have any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2001 07:39 PM
тАО01-23-2001 07:39 PM
Re: PGP Encryption and Signing in a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2001 08:32 PM
тАО01-23-2001 08:32 PM
Re: PGP Encryption and Signing in a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2001 12:17 AM
тАО01-24-2001 12:17 AM
Re: PGP Encryption and Signing in a script
That should solve your problem. Documentation of expect is lousy...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2001 07:52 AM
тАО01-24-2001 07:52 AM
Re: PGP Encryption and Signing in a script
What I wound up doing:
pgpe -sa INPUTFILE -r recipient -o OUTPUTFILE.PGP -u signingkey -z signingkey_passphrase +force