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

Add ExtractSerialNumberFromX509Cert primitive in CHIPCryptoPAL.h and OpenSSL #26425

Closed
tcarmelveilleux opened this issue May 8, 2023 · 0 comments · Fixed by #26485
Closed
Assignees

Comments

@tcarmelveilleux
Copy link
Contributor

Need to document the basic interface, OpenSSL implementation and add a unit test for:

CHIP_ERROR ExtractSerialNumberFromX509Cert(const ByteSpan & certificate, ByteSpan & out_serial_number_in_place)

This should extract the bytes of an ASN.1 X.509 certificate serial number, from in-place representation. The data is not copied-out, but rather out_serial_number_in_place is updated to point to the contents of the certificate. Only the bytes of the INTEGER should be covered, not ASN.1 length/type prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants