[Mono-list] Problems with CRLDistributionPointsExtension

Sebastien Pouliot spouliot@videotron.ca
Thu, 24 Feb 2005 08:16:15 -0500


Hello Kim,

> Thank you (again)!
> Do you have any example code about how I can parse the ASN.1 myself?

The best source is to look at the other attributes source code in
Mono.Security
http://svn.myrealbox.com/viewcvs/trunk/mcs/class/Mono.Security/Mono.Security
.X509.Extensions/

and the RFC specs that have the ASN.1 definitions. You'll probably find that
one in RFC3280.

> All I need is the Directory Access value in plain text, but
> unfortunately I don't know anything about ASN.1.
>
> I have now moved almost all my code from using OpenSSL to Mono regarding
> the certificate handling, and this Directory Access value is the very
> last thing I need to implement before I can dump OpenSSL.

Great :)

> ANY help appreciated :-)

Give it a try. If it doesn't work then open a bug in bugzilla.ximian.com for
Mono.Security.dll
include your code and a sample certificate and I will have a look at it.

> PS!
> X509Extension ex = x509.Extensions ["2.5.29.31"];
> ...works just fine.

Glad :)

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