Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Trouble getting the passes to load #74

Open
scomma opened this issue Sep 5, 2021 · 0 comments
Open

Trouble getting the passes to load #74

scomma opened this issue Sep 5, 2021 · 0 comments

Comments

@scomma
Copy link

scomma commented Sep 5, 2021

Hi, I wasted half a day on this problem and found a solution that I want to share since I assume this project is unmaintained.

If you could generate the pkpass with the library but macOS/iOS refuses to load the pass, use PKPassValidator to figure out what's wrong:

https://pkpassvalidator.azurewebsites.net

In my case it highlighted "TeamIdentifer in signature matches value in pass.json" as problematic.

So I dug into PKPassValidator's source to figure out how that flag came to be. It's saying my template's teamIdentifier doesn't match up with the signature, specifically the OU field.

I opened up the certificate in my keychain and under the subject being certified, it listed Organizational Unit as WLJTXXXXXX. Copied that value into the source code (passed as an argument to createTemplate) and now the passes load correctly.

Hope this helps someone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant