Re: signing a package without logging in to the GUI
Re: signing a package without logging in to the GUI
- Subject: Re: signing a package without logging in to the GUI
- From: Nick Blievers <email@hidden>
- Date: Wed, 15 Dec 2010 11:43:22 +1100
Sorry to answer my own question... its always the way you find the answer shortly after posting!
The solution is to unlock the keychain first, ie:
$ security unlock-keychain -p 'password'
$ /Developer/usr/bin/packagemaker --sign installer/bin-10.6/MyPackage.pkg -c 'Some Cert'
$
success!
On 15/12/2010, at 11:14 AM, Nick Blievers wrote:
> Hi,
>
> How can I sign a package without executing the command from the GUI context?
>
>
> For example:
> If I log in, open Terminal.app and run;
> $ /Developer/usr/bin/packagemaker --sign installer/bin-10.6/MyPackage.pkg -c 'Some Cert'
>
> it succeeds and requires no GUI interaction.
>
> However, if I ssh localhost (same user), and try the same command, I get:
> $ /Developer/usr/bin/packagemaker --sign installer/bin-10.6/MyPackage.pkg -c 'Some Cert'
> Sign Data: CSSMERR_CSP_NO_USER_INTERACTION
> Error signing data.
> ERROR: Could not sign package.
> $
>
> I would like to have my build process automated, but this final step is stopping me. Does anyone have any suggestions?
>
>
> Thanks
>
> Nick
>
> PS I am running 10.6.5 w/ xcode 3.2.5 _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Installer-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden