[Mono-list] Problems with CRLDistributionPointsExtension

Sebastien Pouliot spouliot@videotron.ca
Wed, 23 Feb 2005 11:33:25 -0500


Hello again Kim,

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

IIRC you can do

X509Extension ex = x509.Extensions ["2.5.29.31"];
if (ex != null)
	cdpExt = 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