Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify PublicKey Format #237

Open
ubamrein opened this issue Nov 6, 2020 · 0 comments
Open

Specify PublicKey Format #237

ubamrein opened this issue Nov 6, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@ubamrein
Copy link

ubamrein commented Nov 6, 2020

According to the JWTVerifier source code, only a
[...] UTF8 encoded PEM public key, with a "BEGIN PUBLIC KEY" header is supported. This has lead to confusion (SwissCovid/swisscovid-app-ios#352) since Android allows the use of a x509-Certificate directly.

Either iOS abstracts the public key in a type alias as well, and provides the corresponding constructors, or specifies the format needed here

public init(publicKey: Data, jwtTokenHeaderKey: String) {

Further, the documentation needs to be updated.

@ubamrein ubamrein added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant