Package: greenpass
Green Pass VerifierScriptable green pass verifier.
With this application you can automatize accesses based on green pass validity.
It can also be used to analyze your digital certification (e.g. to print
which key was used to sign the certificate,--verbose).It is compatibile with EU certificates (DGC) and UK certificate (NHS).InstallationYou need to have pip and libzbar to install the application.You can install it using your favorite package manager, for instance in Ubuntu:sudoaptinstallpython3-piplibzbar0You can just install the application using pip:pipinstallgreenpassIf you want to install it from sources, install the python3 requirements
using the following command:pip3install-rrequirements.txtYou can also use it through the pre-built Docker image, you can find ithere.  You can easily use
it using:sudodockerrun--rm-tiberdav/greenpass--settingsUsageYou can feed the application with different file formats, for instance:Green pass official PDFsgreenpass--pdfgreenpass.pdfQRCode images in PNGgreenpass--qrgreenpass.pngTxt files with the content of the qrcodegreenpass--txtgreenpass.txtStandard input and pipeszbarimg--rawgreenpass.png|greenpass--txt-On a side note, you can verify camera-acquired images if your scanner
prints the raw content of the QRcode on stdoutzbarcam--raw-q1|greenpass--txt-The application returns an UNIX compatible code, therefore you can
concatenate commands that will be executed only if the green pass is
verified.greenpass--qrgreenpass.png&&echo"green pass ok"You can also get the expiration configuration using--settingswithout
other inputs.greenpass--settingsDebug the cryptographic part of your greenpassgreenpass--qrgreenpass.png--dump-signPrint the key which the greenpass was signed withgreenpass--qrgreenpass.png--verbose--no-cacheCheck if a greenpass was valid or will be valid on a certain dategreenpass--qrgreenpass.png--at-date'2021-10-30 18:34'Switches-h--helpHelp, print the help messageYou need to use one of:--settingsDump the settings used by the Italian application--qrQRAnalyze the qrcode QR--pdfPDFAnalyze the pdf file PDF--txtTXTAnalyze the txt file TXTCaching options:--cachedirCACHEDIRUse CACHEDIR as the cache directory, by default the cache is placed in$HOME/.local/greenpass.Miscellaneous switches:--rawPrint the raw content (JSON) of the certificate--no-colorDisable colored output.--force-colorForce colored output. (useful in CMD on Windows)--no-cacheDisable cache, download everything without saving it.--clear-cacheRedownload the entire cache, useful to update settings.--keyKEYUse the content of the file KEY as the public certificate (DGC) or the public key (NHS) to
verify the certificate.--verbosePrint more information (e.g. which key verifies the certificate).--dump-signPrint details on the headers and signature of the certificate.--at-dateAT_DATEUse AT_DATE instead of the current date--recovery-expirationThe recovery certification contains an expiration date.  By
default this date is ignored, this switch re-enables the check
and consider this date (in addition to the settings date).--batchRemove all the outputs.--languageLANGUAGELocalize the output in LANGUAGE.  Currently the following languages are
available:EnglishItalianGermanDocker ContainerThe docker image shipped with the program can be used in the following
way:zbarimg--rawqrcode.png|sudodocker-igreenpassRead a PNG greenpass qrcodesudodocker-igreenpass--settingsTo read the settingsAnd virtually with all the switches you can find in the previous
section.  At the moment, files are not easily passed in the container,
therefore it is better to process the qrcode or the pdf outside of the
container and extract the qrcode text to pass in the application.PointersIf you want more information on the green pass certification and how
to parse or verify it you can refer to the following resources:Greenpass Encoding documentationOfficial Italian Android applicationJSON schema and specificationsA very detailed blog post on how decode the pass