Go to file
2021-10-29 18:58:58 +02:00
src update certificate management 2021-10-29 18:58:58 +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 start to add crytpo 2021-10-29 17:27:43 +02:00
package.json start to add crytpo 2021-10-29 17:27:43 +02:00
README.md standardizide the response 2021-09-26 20:00:33 +02:00
tsconfig.json update certificate management 2021-10-29 18:58:58 +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