tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
916 stars 187 forks source link

No support for .p8 files #77

Closed oskar-kupski-valueadd closed 6 years ago

oskar-kupski-valueadd commented 6 years ago

Hi, I can't really generate .p12 file and password to it. I can just add a key and download .p8 file. Am I doing something wrong? I read that Apple has moved from .p12 to .p8 files.

tschoffelen commented 6 years ago

They moved to P8 for push notifications, but I think nothing has changed yet with Pass IDs. Did you follow the instructions in the readme?

oskar-kupski-valueadd commented 6 years ago

Hi @tschoffelen, thanks for answer I managed to create .p12 file but now I get an error in example.php file that says: "Error: Invalid certificate file. Make sure you have a P12 certificate that also contains a private key, and you have specified the correct password!". I tried 3 times with creating new certificate and double-checked password, passTypeId and teamId, but still an error appears

tschoffelen commented 6 years ago

Are you sure it contains BOTH the certificate and the private key? When you export from Keychain Access it should look like this (unfolded via the little arrow, and both selected before right-clicking to export):

image

oskar-kupski-valueadd commented 6 years ago

It resolved the issue, thanks

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.