Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

signing rpm in a build script running in background: passphrase?

205 views
Skip to first unread message

Nagrik

unread,
Aug 25, 2010, 5:56:33 PM8/25/10
to
Hello Group,

I want to sign rpm package at the time of build by making use of --
sign tag.

rpmbuild --sign some.rpm

the build will happen in a script, which will run in the background.

1. Can I put my passphrase in the script file?

2. If I do not want to put my passphrase in the script file, is there
a way a trust can be established for rpmbuild, so that it does not
prompt for a passphrase.

Please let me know.

Thanks in advance.

Nagrik

Robert Heller

unread,
Aug 25, 2010, 8:24:10 PM8/25/10
to
At Wed, 25 Aug 2010 14:56:33 -0700 (PDT) Nagrik <vna...@gmail.com> wrote:

>
> Hello Group,
>
> I want to sign rpm package at the time of build by making use of --
> sign tag.
>
> rpmbuild --sign some.rpm
>
> the build will happen in a script, which will run in the background.
>
> 1. Can I put my passphrase in the script file?

No.

>
> 2. If I do not want to put my passphrase in the script file, is there
> a way a trust can be established for rpmbuild, so that it does not
> prompt for a passphrase.

rpmbuild seems to ALWAYS prompt on stdin for the passphrase.

I too would like some kind of way of signing RPMs as part of an
automated / background / scripted workflow.

>
> Please let me know.
>
> Thanks in advance.
>
> Nagrik
>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
hel...@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/

Jan Gerrit Kootstra

unread,
Aug 26, 2010, 3:40:36 PM8/26/10
to
Robert Heller schreef:

> At Wed, 25 Aug 2010 14:56:33 -0700 (PDT) Nagrik <vna...@gmail.com> wrote:
>
>> Hello Group,
>>
>> I want to sign rpm package at the time of build by making use of --
>> sign tag.
>>
>> rpmbuild --sign some.rpm
>>
>> the build will happen in a script, which will run in the background.
>>
>> 1. Can I put my passphrase in the script file?
>
> No.
>
>> 2. If I do not want to put my passphrase in the script file, is there
>> a way a trust can be established for rpmbuild, so that it does not
>> prompt for a passphrase.
>
> rpmbuild seems to ALWAYS prompt on stdin for the passphrase.
>
> I too would like some kind of way of signing RPMs as part of an
> automated / background / scripted workflow.
>
>> Please let me know.
>>
>> Thanks in advance.
>>
>> Nagrik
>>
>
Gentlemen,


If rpmbuild asks for a stdin input, you might try:

expect

I am unable to help you with the details, have seen examples of feeding
stdin input for telnet.

Regards,


Jan Gerrit

0 new messages