{"id":20923578,"url":"https://github.com/milouk/hcert-demo","last_synced_at":"2025-10-29T16:23:21.963Z","repository":{"id":134887640,"uuid":"364553461","full_name":"milouk/hcert-demo","owner":"milouk","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-05T12:17:48.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T13:05:44.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/milouk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-05T11:26:10.000Z","updated_at":"2021-05-05T12:17:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6da09f5-c362-445b-bf5b-cf5a2bc05af9","html_url":"https://github.com/milouk/hcert-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/milouk/hcert-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milouk%2Fhcert-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milouk%2Fhcert-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milouk%2Fhcert-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milouk%2Fhcert-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milouk","download_url":"https://codeload.github.com/milouk/hcert-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milouk%2Fhcert-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267598159,"owners_count":24113610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T20:16:45.191Z","updated_at":"2025-10-29T16:23:21.878Z","avatar_url":"https://github.com/milouk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# To generate a key run the following commands\n\n- `openssl ecparam -name prime256v1 -genkey -noout -out private-key.pem`\n\n- `openssl ec -in private-key.pem -pubout -out public-key.pem`\n\nThen we need to rename our private key to .key so the HCERT program can read it (This has been patched in this fork so it is not necessary)\n\n`mv private-key.pem private.key`\n\n# To generate an eHealth QR code run the following\n\nFirst we must exec in the container by typing:\n\n`docker exec -it green_qr_dev bash`\n\nThen we must spawn a poetry shell by running:\n\n`poetry shell`\n\nFinally, we run the following:\n\n`python hcert/cli.py sign --key private.key --input test.json --qrcode qr.png`\n\n\n# Verification\n\nIf we want to verify our result we need to re-run the sign but this time we have\nto export the signed binary. We can do this by typing:\n\n`python hcert/cli.py sign --key private.pem --input test.json --output mybinary`\n\nNow to verify it we can run:\n\n`python hcert/cli.py verify --key public.key --input mybinary --output verified.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilouk%2Fhcert-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilouk%2Fhcert-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilouk%2Fhcert-demo/lists"}