<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: automated gpg script with no passphrase in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140758#M734562</link>
    <description>&lt;!--!*#--&gt;&amp;gt; I am using gpg version 1.2.4.&lt;BR /&gt;&lt;BR /&gt;Yow.  How old is that?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can you tell me what version has these&lt;BR /&gt;&amp;gt; arguemenets?&lt;BR /&gt;&lt;BR /&gt;The current version, 1.4.9, has them.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gnupg.org/" target="_blank"&gt;http://gnupg.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Maybe you can guide me from here based upon&lt;BR /&gt;&amp;gt; these gpg Ã¢Â Â debug messages [...]&lt;BR /&gt;&lt;BR /&gt;I'd guide to to a current version, which&lt;BR /&gt;probably offers a bunch of bug fixes as well&lt;BR /&gt;as features.</description>
    <pubDate>Mon, 17 Nov 2008 18:58:21 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-11-17T18:58:21Z</dc:date>
    <item>
      <title>automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140753#M734557</link>
      <description>Hola Mates:&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;gpg -esa -r file&lt;BR /&gt;&lt;BR /&gt;Here's the basic import command of the key&lt;BR /&gt;&lt;BR /&gt;gpg --import&lt;BR /&gt;&lt;BR /&gt;I'm am looking for an option that goes with gpg --import to bypass the passphrase option in gpg --edit-key.&lt;BR /&gt;&lt;BR /&gt;I've been through the gpg manual from the gnupg.org website and it is not intuitively obvious to me.&lt;BR /&gt;&lt;BR /&gt;Anybody ever build an automated gpg script used in ftp transmissions?</description>
      <pubDate>Thu, 13 Nov 2008 13:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140753#M734557</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-11-13T13:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140754#M734558</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This won't work?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.nabble.com/Automate-decryption-td19223767.html" target="_blank"&gt;http://www.nabble.com/Automate-decryption-td19223767.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 13 Nov 2008 14:03:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140754#M734558</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-11-13T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140755#M734559</link>
      <description>Why yes, I believe this is what I'm looking for.  &lt;BR /&gt;&lt;BR /&gt;"...Running without a passphrase just involves removing the passphrase &lt;BR /&gt;from the key altogether: &lt;BR /&gt;&lt;BR /&gt;  gpg --edit-key (thekeyid) &lt;BR /&gt;  passwd &lt;BR /&gt;    (just hit enter for the new passphrase) &lt;BR /&gt;  save ..."&lt;BR /&gt;&lt;BR /&gt;Let me test this out and I'll get back to you.</description>
      <pubDate>Thu, 13 Nov 2008 14:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140755#M734559</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-11-13T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140756#M734560</link>
      <description>If the GPG secret key has been encrypted with a passphrase, the passphrase must be input to use the key.&lt;BR /&gt;&lt;BR /&gt;(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.)&lt;BR /&gt;&lt;BR /&gt;So you must either:&lt;BR /&gt;a) remove the passphrase from the secret key, or&lt;BR /&gt;b) feed the passphrase to GPG non-interactively&lt;BR /&gt;&lt;BR /&gt;You already got some instructions for a). I will offer you some advice for b).&lt;BR /&gt;&lt;BR /&gt;From the GPG man page:&lt;BR /&gt;-----------&lt;BR /&gt;       --passphrase-fd &lt;N&gt;&lt;BR /&gt;Read  the passphrase from file descriptor &lt;N&gt;. Only the first line will be read from file descriptor &lt;N&gt;. If you use 0 for &lt;N&gt;, the passphrase will be read from stdin. This can only be used if only one passphrase is supplied.&lt;BR /&gt;&lt;BR /&gt;       --passphrase-file &lt;FILE&gt;&lt;BR /&gt;Read the passphrase from file &lt;FILE&gt;. Only the first line will be read from file &lt;FILE&gt;. This can only be used if only one passphrase is supplied. Obviously, a passphrase stored in a file is of questionable security if other users can read this file. Donâ  t use this option if you can avoid it.&lt;BR /&gt;&lt;BR /&gt;       --passphrase &lt;STRING&gt;&lt;BR /&gt;Use &lt;STRING&gt; as the passphrase. This can only be used if only one passphrase is supplied. Obviously, this is of very questionable security on a multi-user system. Donâ  t use this option if you can avoid it.&lt;BR /&gt;-----------&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/STRING&gt;&lt;/STRING&gt;&lt;/FILE&gt;&lt;/FILE&gt;&lt;/FILE&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;</description>
      <pubDate>Thu, 13 Nov 2008 15:01:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140756#M734560</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-11-13T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140757#M734561</link>
      <description>MK&lt;BR /&gt;&lt;BR /&gt;I am using gpg version 1.2.4.  And there are no arguements for --passphrase &lt;STRING&gt; or â  passphrase-file for this version.&lt;BR /&gt;&lt;BR /&gt;Can you tell me what version has these arguemenets?&lt;BR /&gt;&lt;BR /&gt;â  â ¦gpg â  versionâ ¦â  &lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;FILENAME=FILE00096&lt;BR /&gt;+ gpg --debug-all -esa -r KEY112013 /home/dataxfer/BOA_positive/CA/outgoing/DEST&lt;BR /&gt;00096&lt;BR /&gt;gpg: reading options from `/home/dataxfer/.gnupg/gpg.conf'&lt;BR /&gt;gpg: DBG: fd_cache_open (/home/dataxfer/.gnupg/secring.gpg) not cached&lt;BR /&gt;gpg: DBG: iobuf-1.0: open `/home/dataxfer/.gnupg/secring.gpg' fd=3&lt;BR /&gt;gpg: DBG: iobuf-1.0: underflow: req=8192&lt;BR /&gt;gpg: DBG: iobuf-1.0: underflow: got=1239 rc=0&lt;BR /&gt;gpg: DBG: parse_packet(iob=1): type=5 length=443 (search.keyring.c.963)&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;gpg: DBG: /home/dataxfer/.gnupg/secring.gpg: close fd 3&lt;BR /&gt;gpg: DBG: fd_cache_close (/home/dataxfer/.gnupg/secring.gpg) new slot created&lt;BR /&gt;gpg: DBG: iobuf-1.0: underflow: eof&lt;BR /&gt;gpg: DBG: iobuf-1.0: close `'&lt;BR /&gt;gpg: no default secret key: secret key not available&lt;BR /&gt;gpg: /home/dataxfer/BOA_positive/CA/outgoing/BOA00096: sign+encrypt failed: secr&lt;BR /&gt;et key not available&lt;BR /&gt;&lt;/STRING&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140757#M734561</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-11-17T14:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140758#M734562</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I am using gpg version 1.2.4.&lt;BR /&gt;&lt;BR /&gt;Yow.  How old is that?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can you tell me what version has these&lt;BR /&gt;&amp;gt; arguemenets?&lt;BR /&gt;&lt;BR /&gt;The current version, 1.4.9, has them.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gnupg.org/" target="_blank"&gt;http://gnupg.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Maybe you can guide me from here based upon&lt;BR /&gt;&amp;gt; these gpg Ã¢Â Â debug messages [...]&lt;BR /&gt;&lt;BR /&gt;I'd guide to to a current version, which&lt;BR /&gt;probably offers a bunch of bug fixes as well&lt;BR /&gt;as features.</description>
      <pubDate>Mon, 17 Nov 2008 18:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140758#M734562</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-11-17T18:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140759#M734563</link>
      <description>Well, here the end of the story.&lt;BR /&gt;&lt;BR /&gt;SEP post something you deserve a big 10 points.  &lt;BR /&gt;&lt;BR /&gt;Additional problems were encountered with extra keys added into the keyring.  Two displayed errors when deleted.&lt;BR /&gt;&lt;BR /&gt;Thanks All!</description>
      <pubDate>Wed, 19 Nov 2008 17:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140759#M734563</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-11-19T17:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: automated gpg script with no passphrase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140760#M734564</link>
      <description>,</description>
      <pubDate>Tue, 25 Nov 2008 01:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-gpg-script-with-no-passphrase/m-p/5140760#M734564</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-11-25T01:23:45Z</dc:date>
    </item>
  </channel>
</rss>

