vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm encrypting a document that needs to be signed. I need to send this document on an automated basis. Problem is, when I encrypt with a signature, it wants my passphrase to complete the signature process. I'm using AIX ksh, and gpg. Any ideas how I can script a response? Thanks. |
| |||
| "Dale DeRemer" <dderemer@neo.rr.com> writes: > I'm encrypting a document that needs to be signed. I need to send this > document on an automated basis. Problem is, when I encrypt with a signature, > it wants my passphrase to complete the signature process. I'm using AIX ksh, > and gpg. Any ideas how I can script a response? The "standard" way to do this is using Expect: http://expect.nist.gov Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| ||||
| In article <m31xm2jigl.fsf@salmon.parasoft.com>, Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> writes: > "Dale DeRemer" <dderemer@neo.rr.com> writes: > > > I'm encrypting a document that needs to be signed. I need to send this > > document on an automated basis. Problem is, when I encrypt with a signature, > > it wants my passphrase to complete the signature process. I'm using AIX ksh, > > and gpg. Any ideas how I can script a response? > > The "standard" way to do this is using Expect: > http://expect.nist.gov Alternatively, some years back I posted code here that showed how to use pseudo-ttys in AIX to do this sort of thing. That's what Expect does, of course - without the input parsing, scripting, etc. I mention it only in case the OP wants a small, specific solution rather than a relatively large and general one. If you're going to do this for more than one or two things, Expect is the way to go. Of course, scripting a passphrase is almost always a case of solving the wrong problem, but it's generally impossible to convince people of that. -- Michael Wojcik michael.wojcik@microfocus.com Proverbs for Paranoids, 2: The innocence of the creatures is in inverse proportion to the immorality of the Master. -- Thomas Pynchon |