Comments (6)
Thanks @FrancescoBonizzi and @Mrizzi-96 for the informations, I will look into this problem as soon as I can
from dgcreader.
Hi @Mrizzi-96 , thank you for reporting this problem.
The library does not need a dependency to BouncyCastle when targeting .NET (5 or greater), because for recent version of .NET it uses the apis under the System.Security.Cryptography namespace instead.
If you are targeting .NET5 you should be able to remove this dependency. Can you tell me something more about your project and what error did you get without this dependency?
from dgcreader.
I have a similiar issue: I wrapped your library in a .NET Standard 2.0 library, but I reference it in a .NET 6 console application, and it throws this exception:
Validation failed with error Could not load file or assembly 'BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942'. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942'. The system cannot find the file specified. File name: 'BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942' at DgcReader.RuleValidators.Italy.CertificateExtendedKeyUsageUtils.GetExtendedKeyUsages(SignatureValidationResult signatureValidation, ILogger logger) at DgcReader.RuleValidators.Italy.DgcItalianRulesValidator.IsRecoveryPvSignature(SignatureValidationResult signatureValidationResult) at DgcReader.RuleValidators.Italy.DgcItalianRulesValidator.CheckRecoveryStatements(EuDGC dgc, ItalianRulesValidationResult result, IEnumerable`1 rules, SignatureValidationResult signatureValidation, ValidationMode validationMode) at DgcReader.RuleValidators.Italy.DgcItalianRulesValidator.GetRulesValidationResult(EuDGC dgc, DateTimeOffset validationInstant, ValidationMode validationMode, SignatureValidationResult signatureValidationResult, BlacklistValidationResult blacklistValidationResult, CancellationToken cancellationToken)
Note two things:
- I fixed in the same way as the developer that posted the issue
- I read this exception because I implemented all loggers, but the output is
Cerificate not valid
. Maybe it could be helpful to make theException
exit from theVerify
method?
from dgcreader.
Thank you @FrancescoBonizzi , I will investigate this behavior as soon as possible.
Can you give me some details about how dependencies are configured in your projects?
Are you referencing the library this way:
└─ Application project (.net 6)
└─ Class Library (.netstandard2.0)
└─ DgcReader libraries
or this way:
└─ Application project (.net 6)
├─ DgcReader libraries
└─ Class Library (.netstandard2.0)
└─ DgcReader libraries
from dgcreader.
Thanks a lot!
Like this:
If I am not wrong it is the first choice you wrote!
from dgcreader.
Hi @DevTrevi , @FrancescoBonizzi,
The error I mentioned is the same one that @FrancescoBonizzi had. The difference lies in the fact that my project is fully written in .NET 5.0, and does not reference other projects written in .NET standard 2.0.
Henceforth, my file structure looks like this:
The library in the red square was added manually.
Hope this helps!
from dgcreader.
Related Issues (20)
- Rimozione modalità ingresso IT
- Aggiornamento core per allineamento a release DGC-SDK Android/Kotlin 1.1.11
- Nuovo force update dei certificati sul backend
- Expose events to notify the download progress of Italian DrlBlacklist values
- ENTRY_ITALY mode
- Italian EXPIRED status
- Check EMA rules
- Unlock DGC R-PV certs for BOOSTER mode
- Updated validation flow for 3G/2G/WORK
- Exemption certificate validation fails during "Rules Validation" HOT 10
- Rimuovere la modalità scuola HOT 3
- Make EuDGC deserializer injectable in order to support custom schemas
- SSL connection could not be enstabilished in NET 6.0 HOT 2
- The UVCI Blacklist inside Rules is not checked during validation HOT 1
- TypeLoadException: Non è stato possibile caricare il tipo 'Microsoft.Extensions.Logging.LoggerExtensions' HOT 5
- Inserire l'apposito header User-agent nelle richieste verso le API HOT 4
- Validation failed with "The minimum version of the App implementation is 1.2.9" HOT 4
- Rimuovere modalità lavoro, diventerà base
- Nuova modalità Ingresso IT
- DoubleScan mode support
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 dgcreader.