node-passbook icon indicating copy to clipboard operation
node-passbook copied to clipboard

Trouble getting the passes to load

Open scomma opened this issue 4 years ago • 0 comments

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.

scomma avatar Sep 05 '21 05:09 scomma