This is the host where your Rails app is running. It is used to generate the URLs for the passes. When the device wants to update the Pass, it will invoke services on this host. In production, it will simply be your domain name, but in development you can use ngrok to expose your local server to the internet.
Remember that it must always start with https://
.
This is the easy one. Head to https://www.apple.com/certificateauthority/ and download the latest Apple Intermediate Certificate Worldwide Developer Relations.
You find this in your Apple Developer dashboard, under Membership.
Head to your Apple Developers console and generate a new certificate.
The identifier is the PASSKIT_PASS_TYPE_IDENTIFIER
variable.
Now, create a certificate signing request: https://help.apple.com/developer-account/#/devbfa00fef7
And create the certificate:
At the end, you'll have a pass.cer
file.
Open it in the Keychain Access tool and export it:
Set a password and get your p12 file. The path to this file is the PASSKIT_PRIVATE_P12_CERTIFICATE
variable.
Save the password. This is the PASSKIT_CERTIFICATE_KEY
variable.