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

fix: instantiate COSE key object when key comes from certificate #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

geonnave
Copy link

@geonnave geonnave commented Dec 8, 2021

When running the programs in the scripts folder, I got cose.exceptions.CoseException: Invalid COSE key.

It happened because, when extracted from a certificate, auth_key is a raw public key, whereas cose_sign.key expects a COSE key object.

@geonnave geonnave changed the title fix: instantiate COSE key object before assignment fix: instantiate COSE key object when key comes from certificate Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant