Bug 19582 - Decoding of X500DistinguishedName not in line with MSDN documentation
Summary: Decoding of X500DistinguishedName not in line with MSDN documentation
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Security ()
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-05-07 04:17 UTC by Mathias
Modified: 2014-05-07 04:22 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Testprogram (933 bytes, text/x-csharp)
2014-05-07 04:22 UTC, Mathias

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 19582 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Mathias 2014-05-07 04:17:09 UTC
Accodring to the MSDN documentation (http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x500distinguishedname%28v=vs.110%29.aspx), the String version of an X500DistinguishedName should be seperated by slashes ("Delimiters are slash marks (/) and must appear before the first value and between subsequent values. ") the example presented there is "/ C=US/ O=Microsoft/ OU=WGA/ CN=TedSt" (which is also consistent with the format used by other certificate software like openssl)

But Mono (3.2.8) currently uses commas as a field delimiters, the example from above would be printed as "C=US,  O=Microsoft, OU=WGA, CN=TedSt"
Comment 1 Mathias 2014-05-07 04:22:29 UTC
Created attachment 6749 [details]

The program prints the decoded subject of a test certificate. On Mono-3.2.8(linux 32 bit) it prints "C=AT, L=Vienna, CN=Tester, E=foo@bar.at", while "/ C=AT/ L=Vienna/ CN=Tester/ E=foo@bar.at" should be expected.