Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cert type (vaccination, test, recovery) #23

Closed
GimecoRules opened this issue Oct 8, 2021 · 3 comments
Closed

Cert type (vaccination, test, recovery) #23

GimecoRules opened this issue Oct 8, 2021 · 3 comments

Comments

@GimecoRules
Copy link

GimecoRules commented Oct 8, 2021

Sorry Panzi, i cannot find in verify_ehc the kind of document to determine local rules.
Could you help me please?

days_exp = 365 #for example if the certificate is 2nd injection
expires_at = issued_at + timedelta(days=days_exp)

I would add if statement for 3 conditions (molecular test, 1st or 2nd injection)
Thank you very much.

@panzi
Copy link
Owner

panzi commented Oct 8, 2021

You want to have a look at this: https://github.com/ehn-dcc-development/ehn-dcc-schema

@GimecoRules
Copy link
Author

:-( I have read all files you have shared with me, but i do not understand which parameters i have to check...
Please could you help me?
Does your ehc_verify program understand code type?
I kindly ask to be patient, i am not an expert.

@panzi
Copy link
Owner

panzi commented Oct 11, 2021

verify_ehc.py only does the cryptographic verification and does not understand the payload (i.e. whether it is test, recovery, or vaccination). If you're not a software developer it's going to be difficult for you to implement country specific rules verification. The variable ehc in this line contains the actual payload data:

ehc = ehc_payload[-260][1]

The format of the date is described in the link in my last comment, and e.g. information about the Austrian verification rules can be found here: https://github.com/Federal-Ministry-of-Health-AT/green-pass-overview#business-rules-validation (No idea about other countries.) I.e. you would need to download the CertLogic rules from the link provided by the Austrian government and apply those rules using a CertLogic engine onto the ehc payload. (I think it will then answer with True or False, not with why it's True or False.)

I had no time or energy to code all that myself and it would be country specific anyway.

@panzi panzi closed this as completed Aug 16, 2022
@panzi panzi closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants