panzi / verify-ehc

Simple Python script to decode and verify an European Health Certificate QR-code
60 stars 17 forks source link

Harmonize JSON output #29

Open bluepuma77 opened 2 years ago

bluepuma77 commented 2 years ago

It would be great to have verify-ehc enable full JSON output. At the moment the used signing certificate is rather human-readable plain text and only the vaccination certificate is JSON formatted. Having a common JSON format would make parsing easier, maybe have a --all-json flag.

If that's not possible it would be good to just add the two fields Valid Key Usage: True and Signature Valid: True to the payload JSON and only output JSON when --only-json is set.

panzi commented 2 years ago

Valid point. I would accept a patch for such a feature.