This is a simple web app for creating and managing Apple Wallet passes.
This is a simple web app for creating and managing Apple Wallet passes.
Clone or fork this repo.
$ git clone https://github.com/jonniespratley/jps-passbook-manager.git
You must install the dependencies.
$ npm install
Then start the server.
$ npm start
Open your browser to localhost:[config.port]
(Nothing yet)
To create a Pass Type ID. Visit the link below and follow the screenshots.
https://developer.apple.com/account/ios/identifiers/passTypeId/passTypeIdList.action
Launch the Keychain Access utility. -From the menu, select Keychain Access | Certificate Assistant | Request a Certificate from a Certificate Authority. In the Certificate Information window, enter the following:
To create a pass open the terminal and execute the following command:
To validate a pass open the terminal and execute the following command:
To sign a pass open the terminal and execute the following command:
openssl smime -binary -sign \
-certfile /Users/jps/Github/jps-passbook-manager/certificates/wwdr-authority.pem \
-signer /Users/jps/Github/jps-passbook-manager/certificates/pass-cert.pem \
-inkey /Users/jps/Github/jps-passbook-manager/certificates/pass-key.pem \
-in /var/folders/pw/y2bdztx93jl73s811y60dtx40000gn/T/mock-coupon.raw/manifest.json \
-out /var/folders/pw/y2bdztx93jl73s811y60dtx40000gn/T/signature \
-outform DER \
-password pass:fred
Use the following Terminal commands to generate a certificate file and a key.pem file.
```
openssl pkcs12 -in pass.p12 -clcerts -nokeys -out pass-certificate.pem -password pass:fred
openssl pkcs12 -in pass.p12 -nocerts -out pass-key.pem
open sslsmime -binary -sign -certfile wwdr.pem -signer pass-cert.pem -inkey pass-key.pem -in manifest.json -out signature -outform DER -passin pass:fred
```
$ openssl pkcs12 -in certificates/pass.p12 -password pass:fred -clcerts -nokeys -out certificates/pass-cert.pem
$ openssl pkcs12 -in certificates/pass.p12 -password pass:fred -nocerts -out certificates/pass-key.pem
$ openssl pkcs12 -in cert.p12 -clcerts -nokeys -out certificate.pem
$ openssl pkcs12 -in cert.p12 -nocerts -out key.pem
$ openssl smime -sign \
-detach \
-in manifest.json \
-out ./signature \
-outform DER \
-inkey ./certificates/pass-passbookmanager-key.p12 \
-signer ./certificates/AppleWWDRCA.cer