Creating an Apple Pass Type Identifier and Certificate
Before you can create a Pass Template and begin issuing passes, you must upload an Apple Certificate to your Badge workspace.
In order to issue passes, Apple requires that you have an Apple Developer Program account. The Apple Developer Program is a paid subscription that enables distribution of apps and passes.
Enroll in the Apple Developer Program if you do not already have an account.
Once enrolled, follow the steps below so that you may begin issuing passes on the Badge platform.
Step 1 - Create a Certificate Signing Request (CSR)
Issuing a pass requires a signing certificate. Before you can generate a signing certificate, you need a certificate signing request (CSR).
-
Use the Badge API to create a CSR file:
curl --request POST \ --url https://api.trybadge.com/v0/workspace/appleCertificateSigningRequests \ --header 'accept: application/x-pem-file' \ --header 'authorization: Bearer your-workspace-api-key'
-
Save the CSR file to your local machine. It should use the
.certSigningRequest
file extension.
Step 2 - Register a Pass Type Identifier in the Apple Developer Portal
A pass type identifier is a unique identifier that Apple uses to identify and group related passes.
-
Navigate to Apple Developer Portal (Register a Pass Type ID).
-
Provide your
Description
andIdentifier
.Pass Templates that share the same
Identifier
may be visually grouped inside the wallet when passes are downloaded. Keep this in mind when deciding whether to reuse Identifiers between multiple Pass Templates. -
Click "Continue" and then "Register" to create the Pass Type Identifier.
Step 3 - Create a Certificate in the Apple Developer Portal
Every Pass Type Identifier
requires a corresponding certificate.
- Navigate to Apple Developer Portal (Create a Certificate).
- Select "Pass Type ID Certificate" from the list, then click "Continue".
- Enter your Pass Certificate Name, and then select the
Pass Type Identifier
you created in the previous step. Click "Continue". - Select "Choose File" and upload the CSR file you saved previously.
- Click "Continue" and then "Download" to save the generated certificate (
pass.cer
) to your local machine.
Step 4 - Upload the Certificate to your Badge Workspace
Now that you have a certificate, the final step is to upload it to your Badge workspace.
-
Use the Badge API to upload the certificate to your Badge workspace:
curl --request POST \ --url https://api.trybadge.com/v0/workspace/appleCertificates \ --header 'accept: application/json' \ --header 'authorization: Bearer your-workspace-api-key' \ --header 'content-type: application/pkix-cert' \ --data '@path/to/your/pass.cer'
Congrats! You've completed the Apple Certificate Upload process, and you are now ready to begin creating Pass Templates.
Certificate Renewal
It is important to take note of the Certificate Expiration Date and renew the certificate before it expires.
To renew a certificate, follow the same steps as above, but instead of registering a new
Pass Type Identifier
, reuse the existing one (i.e you may skip Step 2). When uploading a new certificate to a Badge workspace, any workspace certificate with a matchingPass Type Identifier
will be replaced.
Updated 26 days ago
For the most up to date information. Reference the Apple Developer Documentation: