Signing and Packaging the Pass

The manifest file must be signed so that Passbook can validate the contents of the pass. To sign the manifest, use openssl from a terminal prompt. Specify the certfile as the Apple Worldwide Developer Relations certificate, the PEM version of the certificate created earlier as the signer, the PEM version of the key created earlier as the key, and the password set for the private key in place of mykeypassword.

$ openssl smime -binary -sign -certfile ../AppleWWDRCert.pem -signer ../boardcert.pem -inkey ../boardkey.pem -in manifest.json -out signature -outform DER -passin pass:mykeypassword

A file called signature will be created (-out signature). Any changes to any of the files listed ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.