[Mono-list] Bug in X509Certificate.SubjectName

Sébastien Pouliot spouliot@videotron.ca
Thu, 24 Feb 2005 09:32:58 -0500


Hello Kim,

Please report bugs into bugzilla.ximian.com as there is a good chance
they'll get lost and forgotten in the email archives.

> I have a certificate with the following subject information (from
> Windows certificate browser):
>
> Serialnumber = PID:9802-2002-2-095874063962
> CN = Kim Hellan Larsen
> O = Ingen organisatorisk tilknytning
> C = DK
>
> If I use the
> System.Security.Cryptography.X509Certificates.X509Certificate.GetN
> ame() to get the subject from the certificate, I get:
>
> "C=DK, O=Ingen organisatorisk tilknytning, CN=Kim Hellan Larsen +
> OID.2.5.4.5=PID:9802-2002-2-095874063962"

You get this with Mono ? or with MS ?

> Which is okay...
> But Mono's X509Certificate.SubjectName only gives me:
>
> "C=DK, O=Ingen organisatorisk tilknytning, CN=Kim Hellan Larsen"
>
> Mono is not able to "see" the subjectSerialNumber.

Well it means that Mono doesn't treat subjects like numbers... ;-)

This is indeed a bug, please attach the certificate with the bug report.
I'll fix ASAP.
Thanks

Sebastien Pouliot
home: spouliot@videotron.ca
blog: http://pages.infinit.net/ctech/poupou.html