covidpass-org / covidpassapinet Goto Github PK
View Code? Open in Web Editor NEWAPI for generating wallet passes from EU Digital COVID Certificates
Home Page: https://covidpass.marvinsextro.de
API for generating wallet passes from EU Digital COVID Certificates
Home Page: https://covidpass.marvinsextro.de
When the web app send the pass to the api .net; api net shows the following error:
info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[6] Request origin http://localhost:3000 does not have permission to access the resource.
When I try to run the Api I have the following error:
Unhandled exception. Microsoft.Extensions.Options.OptionsValidationException: DataAnnotation validation failed for members: 'AppleCaPath' with the error: 'The AppleCaPath field is required.'.; DataAnnotation validation failed for members: 'AppleDeveloperPath' with the error: 'The AppleDeveloperPath field is required.'.; DataAnnotation validation failed for members: 'AppleDeveloperPasswordPath' with the error: 'The AppleDeveloperPasswordPath field is required.'. at Microsoft.Extensions.Options.OptionsFactory
1.Create(String name)
at Microsoft.Extensions.Options.OptionsManager1.<>c__DisplayClass5_0.<Get>b__0() at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy
1.CreateValue()
at System.Lazy1.get_Value() at Microsoft.Extensions.Options.OptionsCache
1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsManager
1.Get(String name)
at Microsoft.Extensions.Options.OptionsManager1.get_Value() at CovidPass_API.Services.SigningService.LoadAppleCaCertificate() in /Users/agustinpallares/Downloads/CertificadoCovid/CovidPassApiNet/CovidPassApiNet/Services/SigningService.cs:line 42 at CovidPass_API.LoadCertificatesHostedService.StartAsync(CancellationToken cancellationToken) in /Users/agustinpallares/Downloads/CertificadoCovid/CovidPassApiNet/CovidPassApiNet/LoadCertificatesHostedService.cs:line 25 at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at CovidPass_API.Program.Main(String[] args) in /Users/agustinpallares/Downloads/CertificadoCovid/CovidPassApiNet/CovidPassApiNet/Program.cs:line 16 zsh: abort dotnet CovidPassApiNet.dll
From covidpass repo:
A description of how you can use your certificate locally with the API will be provided in the readme of the CovidPass API. To connect the web app to your local server, you have to set the API_BASE_URL environment variable accordingly.
But README.md here is not updated yet. Can you please help? thx.
When I load the certificates and enter the password with which it is associated, I get the following log:
Unhandled exception. System.Security.Cryptography.CryptographicException: The EncryptedPrivateKeyInfo structure was decoded but was not successfully interpreted, the password may be incorrect. ---> System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
What exactly do I put in password, is it the password of the certificate or the private key, and in what format?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.