Giter Club home page Giter Club logo

jps-passbook-manager's Introduction

Pass Manager

This is a simple web app for creating and managing Apple Wallet passes.

Coverage Status

Build Status

Getting Started

This is a simple web app for creating and managing Apple Wallet passes.

1. Fork It

Clone or fork this repo.

$ git clone https://github.com/jonniespratley/jps-passbook-manager.git

2. Install

You must install the dependencies.

$ npm install

3. Start

Then start the server.

$ npm start

Open your browser to localhost:[config.port]

Release History

(Nothing yet)


How To

  1. Create Pass Type ID Certificate

To create a Pass Type ID. Visit the link below and follow the screenshots.

> [https://developer.apple.com/account/ios/identifiers/passTypeId/passTypeIdList.action](https://developer.apple.com/account/ios/identifiers/passTypeId/passTypeIdList.action)

![image](https://dl.dropboxusercontent.com/u/26906414/jps-passbook-manager/step-1.png)
![image](https://dl.dropboxusercontent.com/u/26906414/jps-passbook-manager/step-2.png)
![image](https://dl.dropboxusercontent.com/u/26906414/jps-passbook-manager/step-3.png)
![image](https://dl.dropboxusercontent.com/u/26906414/jps-passbook-manager/step-4.png)
  1. Export .cert to disk

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:
* User Email Address: Enter the e-mail address associated with your iOS developer account. * Common Name: Choose a name that relates to the Pass Type ID. * CA Email Address: Leave this field blank * Request is: Choose Saved to Disk

  • Creating a pass

To create a pass open the terminal and execute the following command:

  • Validating a pass

To validate a pass open the terminal and execute the following command:

  • Signing a pass

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
```
  • Distributing a pass

Use the following Terminal commands to generate a certificate file and a key.pem file.

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html#//apple_ref/doc/uid/TP40012195-CH4-SW55

```
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
```
  • Create Signing Certificates

    $ 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
    

jps-passbook-manager's People

Contributors

jonniespratley avatar

Watchers

Ben Haim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.