Xcode Build Script Problem with openssl
Xcode Build Script Problem with openssl
- Subject: Xcode Build Script Problem with openssl
- From: Grant Limberg <email@hidden>
- Date: Mon, 27 Oct 2008 20:05:28 -0700
I'm trying to use a build script I found on Marc Liyanage's blog that does some Sparkle automation as part of the Release build. (blog entry can be found here: http://www.entropy.ch/blog/Developer/2008/09/22/Sparkle-Appcast-Automation-in-Xcode.html).
I'm having a little trouble with the part of the script that signs the app with a private key. Here's the line in the script:
SIGNATURE=$( openssl dgst -sha1 -binary < "$ARCHIVE_FILENAME" \ | openssl dgst -dss1 -sign <(security find-generic-password -g -s "$KEYCHAIN_PRIVKEY_NAME" 2>&1 1>/dev/null | perl -pe '($_) = /"(.+)"/; s/\\012/\n/g') \ | openssl enc -base64 )
This returns the following error:
This portion of the command works fine:
(security find-generic-password -g -s "$KEYCHAIN_PRIVKEY_NAME" 2>&1 1>/dev/null | perl -pe '($_) = /"(.+)"/; s/\\012/\n/g') | openssl enc -base64
However, once I extend it to this:
openssl dgst -dss1 -sign <(security find-generic-password -g -s "$KEYCHAIN_PRIVKEY_NAME" 2>&1 1>/dev/null | perl -pe '($_) = /"(.+)"/; s/\\012/\n/g') | openssl enc -base64
I get the error seen above.
Anyone have any clues how to get this working? Any help is much appreciated!
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden