/hc1_test_cert

Creating Digital Covid Vaccination Test Certificates

Primary LanguagePythonEuropean Union Public License 1.2EUPL-1.2

hc1_test_cert

Creating Digital Covid Vaccination Test Certificates

Example Cert

This is a simple python code to create the QR code for digital covid vaccination certificates (Health Certificates) according to EU specification. Of course these are no real certificates as they will be just signed by some non official test key (included unprotectd inside the code).

Usage

You need to have the Python libraries installed defined in requirements.txt. The code was tested under Python 3.8. You just need to run the Python script and QR code will be shown. By adapting the variables on top of the code you can easily create certificates as needed for testing purpose.

By following the text output of the program you can see the different encoding steps for needed for certificate creation.

Creating Own Signing Key

In case you want to use an other sigining key you can import an ECDSA signing key in PEM format, e.g. by creating it via Open SSL:
openssl ecparam -name prime256v1 -genkey -noout -out sign.key

Credits

Code snippets for creating the certificate have been taken from Dirk-Willem van Gulik of his repo ehn-sign-verify-python-trivial