GithubHelp home page GithubHelp logo

covidpass-org / covidpassapinet Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 4.0 13 KB

API for generating wallet passes from EU Digital COVID Certificates

Home Page: https://covidpass.marvinsextro.de

C# 96.44% Dockerfile 3.56%
certificate covid-19 pass wallet

covidpassapinet's People

Contributors

hauketoenjes avatar marvinsxtr avatar soerenbusse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

covidpassapinet's Issues

Problems connecting Web App to Api

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.

Problems running the API

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.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.OptionsManager1.<>c__DisplayClass5_0.<Get>b__0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue()
at System.Lazy1.get_Value() at Microsoft.Extensions.Options.OptionsCache1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsManager1.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

Missing instruction on how to use the generated certificate with the API

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.

Problems with the certificate password

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?

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.