Skip to content

Expose X509SubjectAlternativeNameExtension (or a reasonable facsimilie thereof) #28771

@bartonjs

Description

@bartonjs

Users who want to inspect Subject Alternative Names do so by parsing the output of X509Extension.Format, which is not consistent across cultures or operating systems.

One possible approach is just expose GeneralName and be transparent about the SEQUENCE. But what most scenarios probably want is something more like cert.MatchesHost(string) (so there's at least a consistent interpretation of wildcard matching); which would then likely also make sense on the rich type of the extension. (The problem with MatchesHost is that there are various interpretations for CN fallback, wildcard matching, et cetera; and specifying a lot of flags may not be what anyone wants, either).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions