Skip to content

Check EU Digitial Covid Certificates with ease and validate them against country and local rules.

License

Notifications You must be signed in to change notification settings

timokoenig/covid-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Logo Covid Validator

GitHub Workflow Status GitHub issues GitHub last commit Website

Check EU Digitial Covid Certificates with ease and validate them against local or country rules.

Features

  • ๐Ÿ“ฑ Scan and verify EU Digital Covid Certificates
  • ๐ŸŒ Validate against country or local rules
  • ๐ŸŽŸ Scan Counter to keep track of admission criteria at local venues
  • ๐Ÿ“ด Works offline on smartphones, tablets, and desktop computers
  • ๐Ÿ—ฃ Available Languages: ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿ‡ต๐Ÿ‡ฑ ๐Ÿ‡ฑ๐Ÿ‡น ๐Ÿ‡ท๐Ÿ‡ด ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡ณ๐Ÿ‡ฑ

What is the purpose of CovidValidator?

CovidValidator allows you to scan and validate EU Digital Covid Certificates based on country or local rules. It gives the person that checks the certificate only as little personal information as possible to protect the users' privacy. This web app is an alternative to other existing products because it does not rely on certain app stores or country restrictions.

Add CovidValidator to your Home Screen

Adding the CovidValidator to your Home Screen allows you fast access whenever you need it.

  1. Open CovidValidator in the browser of your device (Smartphone, Tablet, Desktop)
  2. Open the browsers settings or share dialog (Safari)
  3. Scroll Down and tap Add to Home Screen
  4. Confirm Selection

What rules are being used?

The app uses the official EU DCC Validation Rules to validate the certificate. These rules are being provided by the member countries of the Digital Covid Certificate. It is a known problem that those rules might be out of date and do not reflect state or local regulations. This project adds additional rules, like state rules for Germany, to provide the verifier with more up-to-date rules.

EU Digital Covid Certificate

A EU Digital Covid Certificate (EU DCC) is a digital proof that a person has been vaccinated against COVID-19, has recovered from COVID-19 or has a test result. Therefore, the EU Digital COVID Certificate refers collectively to 3 types of certificates: vaccination, recovery and test. (ref)

Key features of the certificate (ref)

  • Digital and/or paper format
  • with QR code
  • free of charge
  • in national language and English
  • safe and secure
  • valid in all EU countries

Signature Verification

The QR code on every certificate has a digital signature to protect it against falsification and it is being checked every time the QR code is scanned. Those signatures are being created by issuing entities, like hospitals, test centers, and health authorities. The public keys are shared through a European gateway with the member countries. The countries then provide additional software to allow the download of those keys. Read more about the update flow here.

CovidValidation uses a Github Action to fetch the newest DSC list once a day from the following API. The reason to do this not in the app itself is to minimize the risk of failed requests and reduce the load on the API.

The verification takes place in async function verifyDCC(dcc: DCC): Promise<boolean> (link). Every time a certificate is scanned, the app checks for the kid in the CBOR Web Token and searches for the matching DSC. If no kid is available, then all DSCs will be used to verify the certificate. The app uses cose-js to verify the signature of the DCC. If the check fails, the user will get an error message that the certificate is technically invalid. Any manipulation of the payload of the DCC will result in an invalid certificate due to the siganture check.

More Information

Test Data

You can find a repository with demo certificates here.

The app will validate only production certificates by default. If you want to use these demo certificates set the following ENV var:

NEXT_PUBLIC_DEBUG_DSC=true

EU DCC Validation Rules

The EU DCC Validation Rules allow a verifier to check if a DCC holder fulfills all requirements to enter a country. You, as a verifier, can change the rules by selecting a different country in the app. Always make sure to select the rules that are required by law in your country, otherwise the verification results might be invalid.

CovidValidation uses a Github Action to fetch the newest rules and value sets once a day from the EU Digital COVID Certificate Business Rule Service. The reason to do this not in the app itself is to minimize the risk of failed requests and reduce the load on the API.

For reference implementations, please refer to github.com/ehn-dcc-development/dgc-business-rules.

The DGCA Business Rule Service is provided by T-Systems Internation GmbH under the Apache License, Version 2.0.

Custom Rule Builder

The custom rule builder allows you to create your own rule set if the available rules do not meet your requirements. This feature is currently in BETA and it might occur problems, so please use it with caution. Nevertheless this does not affect the CovidValidator with all country and state rules!

NOTE Documentation will follow shortly

Getting Started

Add the following variables to your .env file:

NEXT_PUBLIC_CONTACT_NAME=xxx
NEXT_PUBLIC_CONTACT_ADDRESS=xxx
NEXT_PUBLIC_CONTACT_ADDRESS_CITY=xxx
NEXT_PUBLIC_CONTACT_ADDRESS_COUNTRY=xxx
NEXT_PUBLIC_CONTACT_EMAIL=xxx
NEXT_PUBLIC_CONTACT_WEBSITE=covidvalidator.app
NEXT_PUBLIC_VERSION=0.0.1

Then run the following two commands to start your local server:

npm install
npm run dev

Developer Notes

The QR code reader needs to run over localhost or SSL to work. For the local development, follow these steps and run ipconfig getifaddr en0 to get your IP address. Now you can access your dev build via HTTPS on your network.

Snapshot Tests

We use Jest Snapshot Testing for our components.

To add a new snapshot test, follow the instructions or use this example and then run npm run test to automatically create the snapshot file.

To update an existing snapshot, adjust the test case and run npm run snapshot-update.

i18n

The app uses i18next for internationalization. We want to offer this app to as many people as possible therefore native translations are important. We welcome anyone to help us translate this app. To do so, follow these steps:

  1. If the language does not exist, create a folder in /translations and copy the files /translations/en/common.json and /translations/en/country.json in that folder
  2. Translate the existing values in those files and make sure you do not change the key
  3. In case of a new language, please follow the next three steps, otherwise jump to 4) a) Add the translation for the new language to the other common.json files b) Add the language key to the const availableLanguages = ['en', 'de'] array in components/modal/settings.tsx c) Add the i18next resource to pages/_app.tsx similar to the other languages
  4. Save and commit your changes

Note: If you do not add a translation in any given language, the app will default to English.

Available Languages

  • English (100%)
  • German (100%)
  • French (100%)
  • Lithuanian (85%, further checks required)
  • Polish (95%)
  • Romanian (95%)
  • Spanish (100%)
  • Italian (100%, further checks required)
  • Dutch (100%, further checks required)

More Information


Made with โ™ฅ for the community

About

Check EU Digitial Covid Certificates with ease and validate them against country and local rules.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Contributors 3

  •  
  •  
  •  

Languages