Go to file
2021-09-27 18:54:27 +02:00
src added the italy only certificate 2021-09-27 18:54:27 +02:00
.babelrc basic test implemented 2021-09-26 15:42:30 +02:00
.eslintrc.json basic test implemented 2021-09-26 15:42:30 +02:00
.gitignore update repo setting 2021-09-25 11:58:41 +02:00
apigreen.json update open api 2021-09-26 20:30:50 +02:00
jest.config.js basic test implemented 2021-09-26 15:42:30 +02:00
LICENSE Add LICENSE 2021-09-26 15:33:31 +00:00
package-lock.json basic test implemented 2021-09-26 15:42:30 +02:00
package.json basic test implemented 2021-09-26 15:42:30 +02:00
README.md standardizide the response 2021-09-26 20:00:33 +02:00
tsconfig.json first working version 2021-09-24 15:21:24 +02:00

DGCServerVerifier

what is it?

This web server takes a post request on /api/green with a json object as body.

Verifies if the data are correct:

how does it work?

To perform a request to the endpoint, preferably behind a reverse proxy in HTTPS, you should build a JSON object with this structure:

{key:'HC1:6BFOXN%TS3DHPVO13J /G-/2YRVA.Q/R8VRU2FC1J9M$DI9C3K9$:L44HRJPC%OQHIZC4.OI1RM8ZA.A5:S9MKN4NN3F85QNCY0O%0VZ001HOC9JU0D0HT0HB2PL/IB*09B9LW4T*8+DC9I0%YB/VM$*SBAKYE9*FJ7ID$0HY84Q:GY3LV2LW 2C0IO$571IL+9J2P6%24.8P+5E/HW.CV2L%3L%*8PHN6D7LLK*2HG%89UV-0LZ 2ZJJ %C4IJZJJBY43%8 C1VHLEC78G1TFHM*K2ILS-O:S9UZ4+FJE 4Y3LO78L:P...ecc'}

The string is the raw value read from a QR code reader app.

what does it return?

When the request is complete, the server returns a JSON object with this structure:

{
  "signature": {
    "valid": true
  },
  "valid": {
    "valid": true,
    "message": "Certificate is valid"
  },
  "info": {
    "identity": {
      "fnt": "ROSSI",
      "fn": "ROSSI",
      "gnt": "MARIO",
      "gn": "MARIO"
    },
    "dob": "1973-06-22"
  }
}

This software uses the library DCC Utils written by ministero-salute