Search code examples
iospassbookwallet

Cannot open PKPass after updating certificate


Since I updated my certificate, no pkpass can be open from any ios device, i've tried on MAC, on different ios phone and I can't open the pkpass or put it in the wallet

Im pretty sure the problem is with the certificate since it's the only thing that changed but I can't understand why it doesnt work this time. It's not the first time we update it (since the certificate expire every year)

I've use this website (https://pkpassvalidator.azurewebsites.net) that I found to validate my pkpass and everything seem fine.

I tried to debug it with XCode (i'm not sure if I did it right) but in the log, I had "Trust evaluate failure: [leaf KeySize MissingIntermediate SSLHostname TemporalValidity]". (don't know if it help or not and I only got it 1 time, I tried again with another pkpass and I didnt have that log)

I know there is a "intermediate" certificate and I checked on the production machine and I see it on the server (WWDR Certificate (Expiring 02/07/2023 21:48:47 UTC)).

I'm not sure what to do next, I can provide a test pkpass by email if needed (or I can try to make it accessible by my website but I will be harder)


Solution

  • Finaly after debugging some more, I saw that there was a thumb.db file added to the pkpass.

    There was a problem with the manifest.json and that file, which caused the pkpass to stop opening, so I just changed the way we make the pkpass to not add that file.

    Thanks to @PassKit I was able to see the error on the console of my MAC and correct it.