Package: openlabs_nereid_passbook
Apple Passbook integration for Nereid.Easily create passbook passes and leave the rest to this module to handle
updates.ScreenshotBasicsCreating passesti require you to have an apple developer account and a
certificate issued by apple that can be used to sign/verify the passes.
This section explains how you can get one and use it with this module.1. Create a Pass Type IDOn theapple developer portalcreate a new Pass Type ID and give it adescriptionandID. Clickcontinueand thenRegister. HitDoneand then select the newly
created Pass Type ID and click Edit. You should be shown the screen where
you can create a new certificate for the Pass Type. Click onCreate
Certificateand then follow instructions on the next step.2. Generating a certificateCreating a certificate requires a CSR (A request to generate the
certificate). To generate such a certificate you also need a private key.
We recommend that you create a new private key for the purpose of the
passbook as the key will be deployed on all the servers where you will
have to generate passes.The instructions to create a new CSR should be available on the apple
developer portal if you followed the above step. Once you upload the CSR
apple should create a new certificate for you, which could be downloaded
in the subsequent step.3. Export certificate and private key as pem filesThis module uses thepassbookpython package which requires the key
and certificate to be in the pem format for it to work.To export the downloadedpass.cer(certificate) to PEM format:openssl x509 -inform der -in /path/to/pass.cer -out certificate.pemThe private key has to be first exported from keychain to a supported
format and then converted topemfile. The usual export option of private
keys is to ap12file:openssl pkcs12 -in /path/to/exported/private-key.p12 -out key.pemInstallation of the moduleThe key requirement of the module is theM2Cryptopackage which is a
pain in the butt to build and run. The easy approach is to install it using
your OS package manager. For example, in Ubuntu:sudo apt-get install python-m2cryptoOnce M2Crypto is installed, the module can be installed using pip:pip install openlabs_nereid_passbookOr download the module source and then run:python setup.py installConfigurationThe certificate and key generated in step 1 should be made available to
the Tryton configuration subsystem. For this add a new section to your
tryton configuration:[nereid_passbook]
certificate = /path/to/certificate.pem
key = /path/to/key.pem
pass_type_identifier = pass.com.your.organization
team_identifier = AGK5BZEN3EIf you do not know your team identifier, navigate to the home page of the
appleMember Centerand click onyour organization.
The team id would be displayed in the organization profile.TODOSupport for push notifications to update passes.Add a model to keep the logs sent from devices. (Currently spits to the
log file of tryton).ImplementationsNereid Event Sales - Sends event tickets as passes.Authors and ContributorsThis module was built atOpenlabs.Professional SupportThis module is professionally supported byOpenlabs.
If you are looking for on-site teaching or consulting support, contact oursalesandsupportteams.