pkpassvalidator icon indicating copy to clipboard operation
pkpassvalidator copied to clipboard

Certificate validation doesn't work correctly

Open tomasmcguinness opened this issue 2 years ago • 5 comments

The newer G4 certificates use different OU values. These hasn't been updated in the validators code.

I need to overhaul the checks.

tomasmcguinness avatar Jun 10 '22 12:06 tomasmcguinness

.NET now also supports asn.1 decoding. In a8f21c70a3e269b78e68ff63379031f8d848e47a BouncyCastle was added, but it can be replaced with this simple code from stackoverflow for O, CN and OU validation: https://stackoverflow.com/a/71376270/9475188

Parsing passTypeIdentifier from CN can also be "CN=Pass Type ID with NFC: pass.com.example.boarding-pass" Next to "Pass Type ID: " there can also be "Pass Type ID with NFC: "

aberus avatar Sep 21 '22 12:09 aberus

Is this why I'm getting a 👎 even though I'm using the G4 intermediate certificate?

Screenshot 2023-03-21 at 18 35 58

The thumbs-down is confusing, because down the page a bit it says:

Only the G4 certificate is valid for signing passes with certificates generated after the 27th of January, 2022.

So, if the G4 certificate is the only valid certificate, then I should get a thumbs-up if I'm using it?


Update: I think something is broken with pkpassvalidator; no matter which version of the WWDR Certificate I use, I always get the error “WWDR Certificate is version (G4).” I tested all versions from G3 up to G7.

quinncomendant avatar Mar 22 '23 00:03 quinncomendant

@tomasmcguinness @quinncomendant I'm getting a 👎 with PassKit Certificate in date

image

I am currently facing an issue like I have created a .pkpass file from the code and when I am trying to open that file in Apple device I am getting a "File not supported issue" but If I open the same pass in android (PassWallet or Passes) it works fine.

singhdilip1007 avatar Oct 04 '23 11:10 singhdilip1007

hi

@tomasmcguinness @quinncomendant I'm getting a 👎 with PassKit Certificate in date

image

I am currently facing an issue like I have created a .pkpass file from the code and when I am trying to open that file in Apple device I am getting a "File not supported issue" but If I open the same pass in android (PassWallet or Passes) it works fine.

Hi singhdilip1007, I've got the same issue did you found a solution???

fredattack avatar Mar 20 '24 13:03 fredattack

hi

@tomasmcguinness @quinncomendant I'm getting a 👎 with PassKit Certificate in date image I am currently facing an issue like I have created a .pkpass file from the code and when I am trying to open that file in Apple device I am getting a "File not supported issue" but If I open the same pass in android (PassWallet or Passes) it works fine.

Hi singhdilip1007, I've got the same issue did you found a solution???

@fredattack share your pass to email which configure in iPhone than check mail box, there will show correctly. My main requirements was to sent this .pkpass to mail and seems fine

singhdilip1007 avatar Mar 20 '24 16:03 singhdilip1007