Вопрос

I'm trying to generate .pkpass files with this https://github.com/kyleroche/iOS6-passbook-helper

The .pkpass is correctly generated and it also works on iOS 6, but is not working on iOS 7. I've read that it may have something to do with the "signature signing date" as now in iOS 7 is mandatory. Can someone help me to update my .sh so it can create valid .pkpasses for iOS 7 also?

Thanks in advice

Это было полезно?

Решение

I had a quick look at this script and it seems that it is not including the Apple WWDR Certificate.

Download the WWDR certificate and convert it to PEM format:

openssl x509 -inform der -in AppleWWDRCA.cer -out AppleWWDRCA.pem

then try adjusting line 61 of the script to include it in the signature:

openssl smime -binary -sign -signer certificate.pem -inkey key.pem -passin pass:simplepassword -in "$2/manifest.json" -out "$2/signature" -outform DER -certfile "/path_to/AppleWWDRCA.pem"
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top