Skip to content

Unix AsnEncodedData.Format does not match Windows AsnEncodedData.Format #15445

Open
@bartonjs

Description

(Apparently I missed this when moving x-plat crypto bugs from TFS to github back in April. Ouch.)

The biggest example that people will notice would have to do with Subject Alternative Names. The examples below are sanExtension.Format(true)

Windows en-US:

DNS Name=dns1.subject.example.org
DNS Name=dns2.subject.example.org
RFC822 Name=sanemail1@example.org
RFC822 Name=sanemail2@example.org
Other Name:
     Principal Name=subjectupn1@example.org
Other Name:
     Principal Name=subjectupn2@example.org
URL=http://uri1.subject.example.org/
URL=http://uri2.subject.example.org/

Unix (non-localized):

DNS:dns1.subject.example.org, DNS:dns2.subject.example.org, email:sanemail1@example.org, email:sanemail2@example.org, othername:<unsupported>, othername:<unsupported>, URI:http://uri1.subject.example.org/, URI:http://uri2.subject.example.org/

And, for good measure, showing that Windows localizes this:
Windows es-ES

Nombre DNS=dns1.subject.example.org
Nombre DNS=dns2.subject.example.org
Nombre RFC822=sanemail1@example.org
Nombre RFC822=sanemail2@example.org
Otro nombre:
     Nombre de entidad de seguridad=subjectupn1@example.org
Otro nombre:
     Nombre de entidad de seguridad=subjectupn2@example.org
Dirección URL=http://uri1.subject.example.org/
Dirección URL=http://uri2.subject.example.org/

Windows ja-JP:

DNS Name=dns1.subject.example.org
DNS Name=dns2.subject.example.org
RFC822 Name=sanemail1@example.org
RFC822 Name=sanemail2@example.org
Other Name:
     プリンシパル名=subjectupn1@example.org
Other Name:
     プリンシパル名=subjectupn2@example.org
URL=http://uri1.subject.example.org/
URL=http://uri2.subject.example.org/

Activity

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

Metadata

Assignees

No one assigned

    Labels

    area-System.SecurityenhancementProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributorsos-linuxLinux OS (any supported distro)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions