feat(certificate): add RFC 9399 logotype parsing to inspect command#1636
Draft
agustinushanssen wants to merge 1 commit into
Draft
feat(certificate): add RFC 9399 logotype parsing to inspect command#1636agustinushanssen wants to merge 1 commit into
agustinushanssen wants to merge 1 commit into
Conversation
This parses the logotype extension (OID 1.3.6.1.5.5.7.1.12) and prints the URI to the console output. Includes unit tests for all logotype categories.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This parses the logotype extension (OID 1.3.6.1.5.5.7.1.12) and prints the URI to the console output. Includes unit tests for all logotype categories.
Name of feature:
Add RFC 9399 logotype parsing to the
step certificate inspectcommand.Pain or issue this feature alleviates:
Fixes #1359. Previously, the CLI could not extract or display Logotype Extensions (OID
1.3.6.1.5.5.7.1.12). This adds the required ASN.1 structs to safely unmarshal the data and print the Logotype URI directly to the terminal.Why is this important to the project (if not answered above):
It allows developers and administrators to inspect certificates (like VMCs) that contain embedded SVGs or external branding links without needing to drop down to a raw OpenSSL ASN.1 parser.
Is there documentation on how to use this feature? If so, where?
No new documentation is required; the output automatically appears in the
Extensionssection when runningstep certificate inspect <cert>.In what environments or workflows is this feature supported?
Tested and working locally via
make testand manually tested against a production VMC certificate (LinkedIn).In what environments or workflows is this feature explicitly NOT supported (if any)?
None
Note for reviewers: This initial PR only inspects and prints the URI. It does not natively download or decompress the image to a file. I wanted to get your architectural feedback first: would you prefer a dedicated
--export-logotypeflag for that in a future PR, or is printing the URI sufficient for now?Supporting links/other PRs/issues:
Resolves #1359
💔Thank you!