Generates a beautiful credit card sized PDF file which contains your green pass, to prove your Covid-19 immune status.
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
.
You can pass the paramater -m bw
to use a black and white template, if you can only print monochrome cards.
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.
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.
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.
Certificate specification:
- Electronic Health Certificate Specification
- Invalid sample QR code
- Instruction on hackernoon.com how to decode the Green Pass
- More instructions regarding the specification
Similar projects: