Git Product home page Git Product logo

Comments (5)

astagi avatar astagi commented on September 28, 2024 2

Grazie @mastro993! @valeprog ho rilasciato ieri la versione 0.7.0 dell'SDK con diversi improvement sulla DRL e la nuova modalità booster per qualsiasi domanda relativa apri pure nuove issue. Buon lavoro!

from verificac19-sdk.

valeprog avatar valeprog commented on September 28, 2024 1

perfetto grazie!

from verificac19-sdk.

mastro993 avatar mastro993 commented on September 28, 2024

Ciao @valeprog!

Ll'SDK permette già lo scaricamento e caching della lista dei certificati revocati, quindi la normale procedura di verifica di un certificato include anche il controllo per la revoca.
Come da esempio:

// Ottieni il certificat
const myDCC = await Certificate.fromImage('./data/myDCC.png');
// oppure
const myDCC = await Certificate.fromRaw('HC1:6BF+70790T9WJWG.FKY*4GO0.O1CV2...etc..');

// e poi lo validi
const validationResult = await Validator.validate(myDCC);

In validationResult.code troverai il valore REVOKED in caso di certificato revocato.

Assicurati di aver prima aggiornato la relativa lista dei certificati revocati, altrimenti non potrà avvenire il controllo (e la conseguente validazione del certificato).

await Service.updateAll();

Spero di esserti stato di aiuto.

from verificac19-sdk.

valeprog avatar valeprog commented on September 28, 2024

Ho un'altra domanda:
i certificati revocati vengono scaricati da quì https://get.dgc.gov.it/v1/dgc/settings?

from verificac19-sdk.

mastro993 avatar mastro993 commented on September 28, 2024

Si e no: da li viene presa la lista delle regole utilizzata per la validazione, tra cui una la lista degli UVCI (identificativo del certificato) bloccati, ovvero (credo) quei UVCI che sono in circolazione ma che non devono essere riconosciuti per diversi motivi.
Ciò che cerchi tu è la lista dei certificati revocati e riabilitati ed è presa da https://get.dgc.gov.it/v1/dgc/drl.

from verificac19-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.