Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

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

Open
geonnave wants to merge 4 commits intoopenwsn-berkeley:masterfrom
geonnave:instantiate_remote_auth_key
Open

fix: instantiate COSE key object when key comes from certificate#28
geonnave wants to merge 4 commits intoopenwsn-berkeley:masterfrom
geonnave:instantiate_remote_auth_key

Conversation

@geonnave
Copy link
Copy Markdown

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant