[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re:



Try this in a script:

# Using 'echo "" | setsid ..' to make rpmbuild take "" as input to
# GPG key password.
 echo "password" | setsid rpmbuild -ba --sign <specfile.spec>


It worked for me :-)
Regards
Per A.

 Jos Vos wrote:
> <pre wrap>Hi,
>
> Is there a way to sign rpm's without having the passphrase read
> from a tty?  I'm using a workaround with an expect script since
> a long time, which works, but now I have different needs (commands
> in a loop etc.) so that this isn't suffient anymore for me.
>
> Gpg itself has options like --passphrase-fd and --passphrase-file
> and I tried to use this in an own script and define %_gpgbin
> accordingly, but this doesn't seem to work: it looks like %_gpgbin
> is not used at all, it even works when I define it as /bin/false!
>
> Regards,
>
> --
> --    Jos Vos &lt;jos xos nl&gt;
> --    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
> --    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
>
>
> </pre></body>
> </html>
> </html>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]