panzi / verify-ehc

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

CERTS_URL_AT_GREENCHECK = 'https://greencheck.gv.at/api/v2/masterdata' #15

Closed tech-2 closed 3 years ago

tech-2 commented 3 years ago

CERTS_URL_AT_GREENCHECK = 'https://greencheck.gv.at/api/v2/masterdata'

{ "message" : "Die Version dieser Anwendung ist veraltet! Bitte installieren Sie die aktuellste Version!", "detailedMessage" : "Die Version dieser Anwendung ist veraltet! Bitte installieren Sie die aktuellste Version!" }

panzi commented 3 years ago

Can't reproduce. Are you using the current version of the script?

panzi commented 3 years ago

Even though I don't get that error I've bumped the x-app-version header to be the same as the web app uses. Does it still happen for you?

tech-2 commented 3 years ago

If you open it in the webbrowser it isn't any more up to date.

panzi commented 3 years ago

You get this message in the web browser because you don't send the x-app-version: 1.3 header that way. Look at all the headers that I set in the source! https://github.com/panzi/verify-ehc/blob/4784d9ebc78f0378e59e4372e89e77e7d98875fe/verify_ehc.py#L576-L586

You can access the trust list using curl like this:

curl -H 'x-app-version: 1.3' -H 'x-app-type: browser' -H 'Accept: application/json' https://greencheck.gv.at/api/v2/masterdata