Comments (4)
I put my hand on the validator and I reckon I've found the issue.
I don't know why, but some keys used to sign green passes are not recognized.
This is where the validation process fails. The commented part is to bypass signature validation.
const buildResponse = (certificate, rulesResult, signatureOk) => {
let motivation = rulesResult;
/*if (!signatureOk) {
motivation = {
code: NOT_VALID,
result: false,
message: 'Invalid signature',
};
}*/
return {
person: certificate.person ? `${certificate.person.givenName} ${certificate.person.familyName}` : null,
date_of_birth: certificate.dateOfBirth ? certificate.dateOfBirth : null,
...motivation,
};
};
Any suggestion about how to tackle the issue?
from verificac19-sdk.
Hi @drcoccodrillus sorry for my late response! Where your certificate has been issued from?
from verificac19-sdk.
Hi @astagi! Thank you for your reply and my apologies for answering you after one month.
The mentioned green passes where issued by the Italian government. I noticed that mostly the green passes that where bounced by the validator are the temporary one which are coded as "swab". After few days they are always substituted whit a new GP coded as "Cured of COVID-19" and these are correctly validated.
from verificac19-sdk.
No problem @drcoccodrillus , glad your problem has disappeared :) I can close this issue then!
from verificac19-sdk.
Related Issues (20)
- Redis as CRL manager HOT 2
- Please explain database and cache use HOT 7
- Test Green Pass HOT 5
- updateSignatures function fails for 502 error HOT 1
- Modalità work e Gestione Green Pass over 50 HOT 4
- Spongebob cert is still valid? HOT 2
- Verification with Validator.validate() during Service.updateAll() ? HOT 3
- Third doses Moderna Green Pass Certificates validated as TEST_NEEDED with VISITORS_RSA scan mode HOT 3
- Get EMA list from settings
- Inserire l'apposito header User-agent nelle richieste verso le API HOT 1
- è giusto settare endNow in questa maniera, diversamente da startNow? HOT 2
- Regole per validità GreenPass 540 giorni errata HOT 8
- Verifica del vaccino Novavax non valida HOT 4
- Rimuovere la modalità lavoro che diventerà base
- Cache is not ready! HOT 5
- Nuova modalità Ingresso IT HOT 1
- Discrepanza con app c19 HOT 2
- Rimozione modalità ingresso IT
- Aggiornamento core per allineamento a release DGC-SDK Android/Kotlin 1.1.11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from verificac19-sdk.