Closed axlic closed 1 year ago
Hi @axlic, thanks for using passkit-generator!
I don't see anything wrong in your code after a first look. Could you please look at the guide for troubleshooting in the wiki and check if Console.app tells you more information?
Console.app might give a hint to you where you should look at.
Let me know!
@alexandercerutti in the console I'm seeing this error
Invalid data error reading pass pass.com.company.app/AAGH44625236dddaffbda. The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified.
2nd
ERROR: Error Domain=PKPassKitErrorDomain Code=1 "The pass cannot be read because it isn’t valid." UserInfo={NSLocalizedDescription=The pass cannot be read because it isn’t valid., NSUnderlyingError=0x600002670060 {Error Domain=PKPassKitErrorDomain Code=1 "The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified." UserInfo={NSLocalizedDescription=The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified.}}}
3rd Signature validation: FAILED
the teamID is the same id which I take from developer account. event I recreate the whole things but still I'm getting the same error.
@alexandercerutti
I've another question will my code will only work on MacBook where certificates added in the keychain or it will will on my AWS ubuntu server also?
@axlic verify through this guide which are your passTypeIdentifier
and teamIdentifier
in your certificates: https://github.com/alexandercerutti/passkit-generator/wiki/Generating-Certificates#which-passtypeidentifier-and-teamidentifier-am-i-using
I've another question will my code will only work on MacBook where certificates added in the keychain or it will will on my AWS ubuntu server also?
It should work also on AWS.
@alexandercerutti I've checked the certificate the team id and passTypeId is correct
@axlic if you can confirm the values are fine, I don't have any other clue honestly.
Perhaps, but I don't think so, opening it from the iPhone might give a better error message. For the sake of trying, try to not save it to the disk but serve it directly as HTTP Response.
@alexandercerutti currently I'm using macOS 13.4.1 (c) is is make any problem ?
It shouldn't. I'm running on the same OS (Ventura) and I have no issues. I still think there might be some unknown (yet) issues with the certificates.
If you are available to send them to me in private (on telegram) I can make some tests and compare them with mine.
give me telegram id
one thing more.. is it make difference using G2, G3 or G5 wwdr certificate?
You can find the link on my Github profile.
There are differences. Not actually sure which ones (except for G1, which is expired). You should use G4, as also reported in the screenshot you sent me.
@alexandercerutti please check telegram
Thank you @alexandercerutti for creating Awesome package like this, it made my day.
Glad you solved @axlic ! I will still perform some investigations this evening to check what happened.
It would be awesome if you could leave a ⭐ on the project!
Running OS
Current
Running Node Version
NODE 18 LTS
Description
pk pass is generating successfully but when I try to open it, Pass could not be opened error occurred
Code
DBC.pass structure
Pass.json