Comments (4)
What certificates and code exactly are you using to build up the verification chain?
from hcert-kotlin.
I got the same error.
You can reproduce trying this code:
const hcert = require('./lib/hcert/hcert-node'); //your hcert path
const qr =
'HC1:NCFTW2H:7*I06R3W/J:O6:P4QB3+7RKFVJWV66UBCE//UXDT:*ML-4D.NBXR+SRHMNIY6EB8I595+6UY9-+0DPIO6C5%0SBHN-OWKCJ6BLC2M.M/NPKZ4F3WNHEIE6IO26LB8:F4:JVUGVY8*EKCLQ..QCSTS+F$:0PON:.MND4Z0I9:GU.LBJQ7/2IJPR:PAJFO80NN0TRO1IB:44:N2336-:KC6M*2N*41C42CA5KCD555O/A46F6ST1JJ9D0:.MMLH2/G9A7ZX4DCL*010LGDFI$MUD82QXSVH6R.CLIL:T4Q3129HXB8WZI8RASDE1LL9:9NQDC/O3X3G+A:2U5VP:IE+EMG40R53CG9J3JE1KB KJA5*$4GW54%LJBIWKE*HBX+4MNEIAD$3NR E228Z9SS4E R3HUMH3J%-B6DRO3T7GJBU6O URY858P0TR8MDJ$6VL8+7B5$G CIKIPS2CPVDK%K6+N0GUG+TG+RB5JGOU55HXDR.TL-N75Y0NHQTZ3XNQMTF/ZHYBQ$8IR9MIQHOSV%9K5-7%ZQ/.15I0*-J8AVD0N0/0USH.3';
const pemCert =
'-----BEGIN CERTIFICATE-----\n' +
'MIIB1DCCAXmgAwIBAgIKAYDcOWBmNxlPgDAKBggqhkjOPQQDAjBEMQswCQYDVQQG\n' +
'EwJBVDEPMA0GA1UECgwGQk1TR1BLMQwwCgYDVQQFEwMwMDIxFjAUBgNVBAMMDUFU\n' +
'IERHQyBDU0NBIDIwHhcNMjIwNTE5MTIwOTQ5WhcNMjMwNjE5MTIwOTQ5WjBFMQsw\n' +
'CQYDVQQGEwJBVDEPMA0GA1UECgwGQk1TR1BLMQ8wDQYDVQQFEwYwMDIwMDIxFDAS\n' +
'BgNVBAMMC0FUIERHQyBUTCAyMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEl2tm\n' +
'd16CBHXwcBN0r1Uy+CmNW/b2V0BNP85y5N3JZeo/8l9ey/jIe5mol9fFcGTk9bCk\n' +
'8zphVo0SreHa5aWrQKNSMFAwDgYDVR0PAQH/BAQDAgeAMB0GA1UdDgQWBBRTwp6d\n' +
'cDGcPUB6IwdDja/a3ncM0TAfBgNVHSMEGDAWgBQvWRbxO3tS9HatiMTvp8sD9Rwy\n' +
'wTAKBggqhkjOPQQDAgNJADBGAiEAleZ8CcLG4FK4kty+sN0APZmT6LfEE2kzznyV\n' +
'yEepU0gCIQCGaqJpOwPXBmgoOsehnJkA0+TZX8V2p1Bg/nqnuYqXFg==\n' +
'-----END CERTIFICATE-----';
const verifier = new hcert.VerifierDirect([pemCert]);
console.debug(verifier.verify(qr));
cert is from https://github.com/Federal-Ministry-of-Health-AT/green-pass-overview#details-on-trust-listsbusiness-rulesvalue-sets
from hcert-kotlin.
Here is a minimal version of the javascript code I'm using: https://gist.github.com/lazka/a73748f8a6bad49bcdee4b2dd149c192
from hcert-kotlin.
Looks like the API now returns data signed with the right KID again, so this "fixed itself".
Not the smoothest transition, but at least it works again :)
Feel free to close this
from hcert-kotlin.
Related Issues (20)
- Empty "dr" field
- Publish hcert-kotlin on npm HOT 2
- Integration questions HOT 2
- Data Classes for Business Rules HOT 1
- Debugging Issue with v.1.3.0 HOT 4
- Cose.kt?5e47:24 Uncaught TypeError: sign$Companion.createSync is not a function HOT 2
- Probably Wrong expirationTime? HOT 7
- HCERT DOB is weakly verified HOT 1
- Where can I find SignedDataDownloader? HOT 2
- javascript: Possible to inject clock? HOT 3
- metaInformation missing time/timezone information
- JVM library missing public constructors HOT 3
- Missing hcert-kotlin.js HOT 5
- cbor+BigInt and Safari <14 HOT 1
- Java Maven Integration HOT 7
- Offline Validation for more than 48h 7 VerificationException: Expiration<clock.now() HOT 5
- CWT_Expired Error on Check with a new 3/3 valid cert HOT 2
- Add Anonymisation feature to JS Target
- Update JS to IR Backend
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 hcert-kotlin.