Skip to content

hooplab/ex_passbook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passbook for Elixir Hex pm hex.pm downloads

Elixir library to create Apple Wallet (.pkpass) files (Apple Wallet has previously been known as Passbook in iOS 6 to iOS 8).

See the Wallet Topic Page and the Wallet Developer Guide for more information about Apple Wallet.

Installation

This package can be installed by adding passbook to your list of dependencies in mix.exs:

def deps do
  [
    {:passbook, "~> 0.1.8"}
  ]
end

Getting Started

  1. Get a Pass Type Id
  • Visit the iOS Provisioning Portal -> Pass Type IDs -> New Pass Type ID
  • Select pass type id -> Configure (Follow steps and download generated pass.cer file)
  • You will get a .cer file, which you can convert to .pem file with openssl
openssl x509 -in pass.cer -inform DER -outform PEM -out certificate.pem
  • Convert your private key to encrypted .pem file with openssl
openssl rsa -in key.pem -des3 -out private_key.pem
  • Convert your wwdr.cer to .pem file with openssl
openssl x509 -in wwdr.cer -inform DER -outform PEM -out wwdr.pem

Usage

See doctests in lib/passbook.ex

About

Elixir library to create Apple Wallet (.pkpass) files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 93.1%
  • Shell 5.5%
  • Batchfile 1.4%