A nodejs wrapper to check gp for Covid 19 using the official APIs
Check Green Pass Validity
This tool is an executable wrapper for the official Verifica C19 SDK. It is used to validate a certificate image. See: https://github.com/italia/verificac19-sdk Usage: checkdgc [options] <path/to/image> Options:
- --help Print this help message
- --version Print the version of this tool
- --verbose Print verbose output
- --raw Validate a certificate giving the qr extracted string
- --short Print only the validation code
- --print-all Print all the certificate in JSON format
- --super Use the super DGP rules
- --booster Use the booster DGP rules
- --no-signature Skip signature validation
- --no-update Skip update of the DGP rules
- --waitkey Wait for a keypress before exiting
Examples: checkdgc --verbose --short --super --no-signature --no-update path/to/image.png checkdgc --short --super path/to/image.png # Print only the validation code
In the test folder there are some example images to validate. All the images are taken from https://github.com/eu-digital-green-certificates/dgc-testdata If you want you can use your own dgc image to check signature validation.
You can do it using pkg:
npm i -g pkg
Then:
pkg app.js
Automatic compilation with npm scripts:
npm install
npm install -g pkg
npm run build-windows