8000 Add ExtractSubjectFromX509Cert and OpenSSL implementation · Issue #26427 · project-chip/connectedhomeip · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add ExtractSubjectFromX509Cert and OpenSSL implementation #26427

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

Closed
tcarmelveilleux opened this issue May 8, 2023 · 1 comment
Closed

Add ExtractSubjectFromX509Cert and OpenSSL implementation #26427

tcarmelveilleux opened this issue May 8, 2023 · 1 comment
Assignees

Comments

@tcarmelveilleux
Copy link
Contributor

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

CHIP_ERROR ExtractSubjectFromX509Cert(const ByteSpan & certificate, ByteSpan & out_subject_in_place)

This should extract the bytes of an ASN.1 X.509 certificate subject field, from in-place representation. The data is not copied-out, but rather out_subject_in_place is updated to point to the contents of the certificate. The full Subject sequence should be present.

Example of extracting the right format (based on issuer field, but it's similar for subject) is attached.

extract_cert_fields_for_dcl.py.zip

@emargolis
Copy link
Contributor

Fixed with #26588

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

No branches or pull requests

2 participants
0