- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- automated gpg script with no passphrase
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
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
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
тАО11-13-2008 05:54 AM
тАО11-13-2008 05:54 AM
automated gpg script with no passphrase
Well the subject line says it all. I'm seeking a way to with this gpg command syntax to omit the gpg passphrase during encryption. Here's what I've been given:
gpg -esa -r file
Here's the basic import command of the key
gpg --import
I'm am looking for an option that goes with gpg --import to bypass the passphrase option in gpg --edit-key.
I've been through the gpg manual from the gnupg.org website and it is not intuitively obvious to me.
Anybody ever build an automated gpg script used in ftp transmissions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 06:03 AM
тАО11-13-2008 06:03 AM
Re: automated gpg script with no passphrase
This won't work?
http://www.nabble.com/Automate-decryption-td19223767.html
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 06:28 AM
тАО11-13-2008 06:28 AM
Re: automated gpg script with no passphrase
"...Running without a passphrase just involves removing the passphrase
from the key altogether:
gpg --edit-key (thekeyid)
passwd
(just hit enter for the new passphrase)
save ..."
Let me test this out and I'll get back to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 07:01 AM
тАО11-13-2008 07:01 AM
Re: automated gpg script with no passphrase
(Note: data encryption uses only public key, which is never protected with a passphrase. But if you also sign the data, your own secret key is also needed. This is what the passphrase is for.)
So you must either:
a) remove the passphrase from the secret key, or
b) feed the passphrase to GPG non-interactively
You already got some instructions for a). I will offer you some advice for b).
From the GPG man page:
-----------
--passphrase-fd
Read the passphrase from file descriptor
--passphrase-file
Read the passphrase from file
--passphrase
Use
-----------
So, using "--passphrase-fd 0" will allow you to pipe the passphrase to GPG. That will make it necessary to protect whatever the passphrase is piped from, and/or the script that does the piping. Remember that command line arguments can be visible to all users in the ps listing.
The option "--passphrase-file" requires to protect only one file that contains the passphrase. I guess this might be the easiest for you, if you can put appropriate protections (usually, chmod 600 or even 400) on the file.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2008 06:51 AM
тАО11-17-2008 06:51 AM
Re: automated gpg script with no passphrase
I am using gpg version 1.2.4. And there are no arguements for --passphrase
Can you tell me what version has these arguemenets?
├в ├в ┬жgpg ├в version├в ┬ж├в
SEP
Here├в s where I├в m at. After first successfully building new public and secret keys using first the ├в ..gpg ├в import KEY_1├в ┬ж├в command and then the ├в ├в ┬жgpg ├в edit-key KEY_2├в ┬ж├в , and after having entered a passphrase, I am now at the point where I can not recreate the procedure minus the passphrase. Maybe you can guide me from here based upon these gpg ├в debug messages from my script.
FILENAME=FILE00096
+ gpg --debug-all -esa -r KEY112013 /home/dataxfer/BOA_positive/CA/outgoing/DEST
00096
gpg: reading options from `/home/dataxfer/.gnupg/gpg.conf'
gpg: DBG: fd_cache_open (/home/dataxfer/.gnupg/secring.gpg) not cached
gpg: DBG: iobuf-1.0: open `/home/dataxfer/.gnupg/secring.gpg' fd=3
gpg: DBG: iobuf-1.0: underflow: req=8192
gpg: DBG: iobuf-1.0: underflow: got=1239 rc=0
gpg: DBG: parse_packet(iob=1): type=5 length=443 (search.keyring.c.963)
.
.
gpg: DBG: /home/dataxfer/.gnupg/secring.gpg: close fd 3
gpg: DBG: fd_cache_close (/home/dataxfer/.gnupg/secring.gpg) new slot created
gpg: DBG: iobuf-1.0: underflow: eof
gpg: DBG: iobuf-1.0: close `'
gpg: no default secret key: secret key not available
gpg: /home/dataxfer/BOA_positive/CA/outgoing/BOA00096: sign+encrypt failed: secr
et key not available
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2008 10:58 AM
тАО11-17-2008 10:58 AM
Re: automated gpg script with no passphrase
Yow. How old is that?
> Can you tell me what version has these
> arguemenets?
The current version, 1.4.9, has them.
http://gnupg.org/
> Maybe you can guide me from here based upon
> these gpg ├Г┬в├В ├В debug messages [...]
I'd guide to to a current version, which
probably offers a bunch of bug fixes as well
as features.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 09:19 AM
тАО11-19-2008 09:19 AM
Re: automated gpg script with no passphrase
SEP post something you deserve a big 10 points.
Additional problems were encountered with extra keys added into the keyring. Two displayed errors when deleted.
Thanks All!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2008 05:23 PM
тАО11-24-2008 05:23 PM