ryantenney / passkit4j

Java library for generating Apple Passbook (.pkpass) files

Home Page:http://www.ryantenney.com/passkit4j/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible issue

fkrauthan opened this issue · comments

Hey I found in the internet that some other API users complaining about that the pass doesn't work to import on a real device without the WWDR in the manifest file.

Can some one validate that if this issue exists with this implementation too? (I can't import at the moment a pass on a IPod with IOS6 but this could also be because my web service url is http instead of https)

http://stackoverflow.com/questions/12701230/passbook-pass-can-not-be-installed

I can successfully create passes and install them on my devices. So there should be no issue concerning not included certificates. To determine the problem you need to take a look into the device logs - otherwise it's very hard to find the problem. :)

I looked up that issue on the PHP-PKPass lib and this was the change that was made as a result of that issue: https://github.com/tschoffelen/PHP-PKPass/pull/13/files; the example didn't include a call to set the path of the WWDR certificate file, which isn't added to the manifest but is used as a parameter when invoking the openssl_pkcs7_sign method. I don't think there is a legitimate use case for signing a pass without an intermediate certificate present, but that library doesn't throw an exception when one isn't included... (see https://github.com/tschoffelen/PHP-PKPass/blob/5d70ca7147c500c50aa13a7167aa50a94c145ac8/PKPass.php#L316)

I've been meaning to post something about debugging passes... Best way to do it is to open up the iOS simulator, execute tail -f /var/log/system.log in terminal and drag the pass onto the simulator.