[![Crate](https://img.shields.io/crates/v/greenpass.svg)](https://crates.io/crates/greenpass) [![dependency status](https://deps.rs/repo/github/mcilloni/greenpass/status.svg)](https://deps.rs/repo/github/mcilloni/greenpass) ![Build](https://github.com/mcilloni/greenpass/workflows/Build/badge.svg) # greenpass A Rust crate to parse EU Digital Green Certificates for COVID-19, with a simple utility to dump certificates with a well formatted output. Based on the [JSON specification](https://ec.europa.eu/health/sites/default/files/ehealth/docs/covid-certificate_json_specification_en.pdf) and [Technical Specifications](https://ec.europa.eu/health/sites/default/files/ehealth/docs/digital-green-certificates_v1_en.pdf) for Digital Green Certificates as published by the EU. Verification of cryptographic signatures is not implemented. Do not use this code to validate certificates for non-educational purposes. ## Usage This crate is able to load Base45-encoded DGC payloads. It does not directly support barcode parsing, but can be uses alongside [ZBar](http://zbar.sourceforge.net/) to read Digital Green Certificates from images: ```shell $ greenpass <(zbarimg -q pass.png | sed s/QR-Code://) EU Digital COVID Certificate Issued by: AT Created at: 2021-07-02 23:58:57 UTC Expires at: 2022-07-02 23:58:57 UTC Pass#0: Cert version 1.2.1 Emitted to: Gabriele Musterfrau-Gößinger Standardized Name: GABRIELE MUSTERFRAU