Green-Pass QR Code Signature Verification (Java)
Using the ECC Public Key certificates
In a previous article, I’ve talked about how to DECODE the green pass QR code and how to get the string values contained in the image (name, surname, vaccinations, etc).
In this article we will see some snippets of a Java program that somehow mimics the implementation done by the various green pass checker applications; in particular, I’ve taken as reference the Italian VerificaC19 application https://github.com/ministero-salute/it-dgc-verificaC19-android.
The full implementation is available in the repository linked in the resource section at the end of the article.
DISCLAIMER: the implementation herein provided couldn’t be used in any way to actually validate green passes QR codes. Only government-certified applications (as VerificaC19 for Italy) must be used.
Step 1: Get the certificates
All the Public Key certificates available are reachable at this address: