VS: [Mono-list] Problems with CRLDistributionPointsExtension

Hellan.Kim KHE KHE@kmd.dk
Thu, 24 Feb 2005 09:33:23 +0100

Hi Sebastian

Thank you (again)!
Do you have any example code about how I can parse the ASN.1 myself?
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.

ANY help appreciated :-)


X509Extension ex =3D x509.Extensions [""];
...works just fine.

-----Oprindelig meddelelse-----
Fra: Sebastien Pouliot [mailto:spouliot@videotron.ca]=20
Sendt: 23. februar 2005 17:33
Til: Hellan.Kim KHE
Cc: mono-list@lists.ximian.com
Emne: RE: [Mono-list] Problems with CRLDistributionPointsExtension

Hello again Kim,

> CRLDistributionPointsExtension cdpExt =3D null;
> foreach( X509Extension xe in x509.Extensions )
> {
>   if( xe.Oid !=3D "" )
>     continue;
>   cdpExt =3D new CRLDistributionPointsExtension( xe );
>   break;
> }

IIRC you can do

X509Extension ex =3D x509.Extensions [""];
if (ex !=3D null)
	cdpExt =3D new CRLDistributionPointsExtension (xe);

> An unhandled exception of type 'System.NullReferenceException'
occurred in
> Additional information: Object reference not set to an instance of an

The DistributionPoint SEQUENCE (inside the CRLDistributionPoint) isn't

Sadly it's been a while since I've worked on this code. I will
resume this to support CRL and other Fx 2.0 features but until then only
features that Mono required elsewhere are implemented.

> Any idea what I can do to make this work?

a.	Contribute the code :-) or
b.	Fill a bug in bugzilla.ximian.com, attach sample code and a

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

www.kmd.dk   www.kundenet.kmd.dk   www.eboks.dk   www.civitas.dk   =

Hvis du har modtaget denne mail ved en fejl vil jeg gerne, at du =
informerer mig og sletter den.
KMD skaber it-services, der fremmer effektivitet hos det offentlige, =
erhvervslivet og borgerne.

If you received this e-mail by mistake, please notify me and delete it. =
Thank you.
Our mission is to enhance the efficiency of the public sector and =
improve its service of the general public.=20