Skip to content

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Mar 10, 2024

Verification keys can now be provided in either PEM format, or as a base64-encoded string.

This fixes #115.

@chriso chriso self-assigned this Mar 10, 2024
Comment on lines +143 to +146
# Be forgiving when accepting keys in PEM format, which may span
# multiple lines. Users attempting to pass a PEM key via an environment
# variable may accidentally include literal "\n" bytes rather than a
# newline char (0xA).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thinking on this one 👍

@chriso chriso merged commit 49a1c2f into main Mar 10, 2024
@chriso chriso deleted the verification-key-str branch March 10, 2024 22:44
@achille-roussel achille-roussel added the enhancement New feature or request label Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error reporting when the verification key is invalid
2 participants