VS: [Mono-list] Problems with CRLDistributionPointsExtension

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


=20
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 :-)

/Kim

PS!
X509Extension ex =3D x509.Extensions ["2.5.29.31"];
...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 "2.5.29.31" )
>     continue;
>   cdpExt =3D new CRLDistributionPointsExtension( xe );
>   break;
> }

IIRC you can do

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

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

The DistributionPoint SEQUENCE (inside the CRLDistributionPoint) isn't
decoded.

Sadly it's been a while since I've worked on this code. I will
eventually
resume this to support CRL and other Fx 2.0 features but until then only
the
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
sample
certificate;

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   =
www.netborger.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