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.
This package can be installed by adding passbook to your list of dependencies in mix.exs:
def deps do
[
{:passbook, "~> 0.1.8"}
]
end- 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.pemSee doctests in lib/passbook.ex