Creates and generates a signed Apple Wallet Pass as a *.pkpass file that you can download and add to your Apple Wallet.
- Create a folder
certificates
in the app folder. - Open Keychain App on your Mac, go to Certificate Assistant -> Request Certificate from Authority, write email and Save it in the
certificate
folder. - Go to https://developer.apple.com/account/resources/identifiers/list/passTypeId and create a new
Pass Type ID
by clicking + button. When prompted upload certificate created on the step 2. - Download passTypeId, double click and add it to Keychain.
- Find
Pass Type ID
certificate underMy Certificates
(in login) and click Export. Don't forget the password used. Save the file in thecertificates
folder asCertificate.p12
. - Open terminal and from the
certificates
folder run following commands:openssl pkcs12 -in Certificates.p12 -clcerts -nokeys -out passcertificate.pem -passin pass:<PASSWORD_YOU_USED_WHEN_EXPORTED> -legacy
openssl pkcs12 -in Certificates.p12 -nocerts -out passkey.pem -passin pass: -passout pass:<PASSWORD_YOU_USED_WHEN_EXPORTED> -legacy
- Don't change the names of the file in the cretificates folder
- Create .env file:
CERT_PASSWORD=<PASSWORD_YOU_USED_WHEN_EXPORTED> AUTH_TOKEN=<AUTH_TOKEN_THAT_YOU_GOT_FROM_FINOM>
To run this project, you can use Docker Compose:
docker-compose up
- Basic info about Apple Wallet Passes: https://developer.apple.com/documentation/walletpasses/creating_the_source_for_a_pass
- Design and patterns: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html#//apple_ref/doc/uid/TP40012195-CH4-SW1