petres / green-pass-generator

generate a creditcard sized green pass card

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIT License Test runs

Green Pass Generator

Generates a beautiful credit card sized PDF file which contains your green pass, to prove your Covid-19 immune status.

Example Green Pass

Usage

Then run the script, passing a picture which contains the QR code of your vaccination certificate:

./green-pass-generator -O output -i input/gabriele-musterfraugoessinger.png

Other command line parameters allow to set the output file name and to choose the SVG convert, see output of ./green-pass-generator --help.

If you want to generate multiple green pass cards, put all input files in the folder input and run:

for fname in $(cd input; ls);
    do ./green-pass-generator -O output -i input/$fname;
done

Disclaimer: No guarantee given that the specification is completely fulfilled. It might work or it might not work. Do run only with trusted input QR codes, there are no security checks. At the moment there is no proper handling of test or recovery certificates.

Installation

For MacOS and Linux you need to install libzbar0, e.g. by running:

sudo apt install libzbar0

Then clone the Git repository and install all Python dependencies:

git clone https://github.com/lumbric/green-pass-generator
pip install -r requirements.txt

If you want to keep your OS clean, you can install the dependencies in a virtual environment.

If you want to use Inkscape as SVG converter, use your OS' package manager to install it or download it directly from their web page.

Is this legal?

Probably yes, but I am not sure what counts as proof of a valid certificate. In Germany there is a company selling such cards and several newspaper articles suggest that it should be fine. The Austrian law does not seem to be very specific, whether you are allowed to produce your own proof containing a valid QR code. Of course, this script can only re-generate a valid QR code. To generate a new green pass certificate, you would need to have access to a valid private key.

Links

Certificate specification:

Similar projects:

About

generate a creditcard sized green pass card

License:MIT License


Languages

Language:Python 100.0%