• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode Build Script Problem with openssl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

unable to load key file

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!

Regards,

Grant Limberg
email@hidden
LinkedIn: http://www.linkedin.com/in/grantlimberg
http://www.glsoftware.net

 _______________________________________________
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

  • Prev by Date: Re: link error: fputs
  • Next by Date: Re: Using Subversion with Xcode 3.1.1 on local network?
  • Previous by thread: Re: warning: no debug symbols in executable (-arch i386)
  • Next by thread: Automatically Remove Unused #import Directives
  • Index(es):
    • Date
    • Thread