Skip to content

X509Certificate wrongly parsed the subject from the given raw data of certificate in MacOs  #27438

Closed
@shidouli

Description

@shidouli

Name Value


PSVersion 6.1.0-rc.1
PSEdition Core
GitCommitId 6.1.0-rc.1
OS Darwin 16.7.0 Darwin Kernel Version 16.7.0: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

X509Certificate2 x509Certificate = new X509Certificate2(certData); // certData is byte[]

In MacOS, the result of x509Certificate is as followed
PS /Users/administrator> $cert.Subject
OID.2.23.133.2.3=id:00020065, OID.2.23.133.2.2=, OID.2.23.133.2.1=id:564D5700

While in ubuntu or windows, the result is:
TPMVersion=id:00020065, TPMModel=, TPMManufacturer=id:564D5700

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions