Skip to content

fix: render all OIDs in certificate subject DN #84

@danielewood

Description

@danielewood

Summary

FormatDN doesn't render all OIDs in the certificate subject. Non-standard OIDs like EV-specific fields are shown as raw ASN.1 OID + hex values instead of human-readable names.

Example

SERIALNUMBER=C2543436,CN=extended-validation.badssl.com,O=Mozilla Foundation,...,
1.3.6.1.4.1.311.60.2.1.2=#130a43616c69666f726e6961,
1.3.6.1.4.1.311.60.2.1.3=#13025553,
2.5.4.15=#131450726976617465204f7267616e697a6174696f6e

Expected

These OIDs should be rendered with their standard names:

OID Name
1.3.6.1.4.1.311.60.2.1.2 jurisdictionStateOrProvinceName
1.3.6.1.4.1.311.60.2.1.3 jurisdictionCountryName
2.5.4.15 businessCategory

Observed when inspecting extended-validation.badssl.com.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions