[Mono-list] Re: Mono.Security

Sébastien Pouliot spouliot@videotron.ca
Thu, 11 Dec 2003 08:50:33 -0500


Sunil,

Ok it's getting stranger. I seems in sync with CVS and can't duplicate the
problem with the 2 "candidate" certificates I got (the one from
https://www.nldap.com and the one that Carlos sent me).

Can you try, with your certificate, the following code ...

using System;
using System.Security.Cryptography.X509Certificates;

class X509Tester {
	[STAThread]
	static void Main (string[] args)
	{
		X509Certificate x = X509Certificate.CreateFromCertFile (args[0]);
		Console.WriteLine (x.ToString (true));
	}
}

... on
a.	Windows, MS.NET runtime/class library
b.	Windows, Mono runtime/class library
c.	Linux, Mono runtime/class library

and fill a bug report with the results and the certificate used. I'll look
into this ASAP.
Thanks

Sebastien Pouliot
Security Architect, Motus Technologies, http://www.motus.com
work: spouliot@motus.com
home: spouliot@videotron.ca
blog: http://pages.infinit.net/ctech/poupou.html


-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Sunil Kumar
Sent: 11 décembre 2003 00:22
To: Matt Ryan; carlosga@telefonica.net
Cc: mono-list@lists.ximian.com; Parameswaran S
Subject: Re: [Mono-list] Re: Mono.Security


Looks like there is some problem with the Mono's
System.Security.Cryptography.X509Certificates.X509Certificate class.
I tried to create a certicate object using CreateFromCertFile method and a
ASN1 DER encoded certicate file  ,but its throwing exception. I did the same
thing on windows using MS .NET with the same certificate file and its
working. Below is the code snippet:-

try{
X509Certificate cert = X509Certificate.CreateFromCertFile(certfile);
}Catch(Exception e)
{
        Console.WriteLine("Error:" + e.Message);
        return;
}

On linux it throws following exception:-
Error: Input data cannot be coded as a valid certificate.

Regards
Sunil.

>>> Carlos Guzmán Álvarez <carlosga@telefonica.net> 12/9/2003 9:56:53 PM >>>
Hello:

> There is also an internet-accessible eDirectory server that (I'm told)
 > anyone can use for testing purposes, at http://www.ndlap.com.

Thanks very much.

I have made a little test trying to negotiate the Handshake protocol
against the www.nldap.com using .NET 1.0 and the SSL/TLS libraries
sources from my local tree, with success, i will try to make the same
test using mono, and update the mono cvs sources as soon as possible.






--
Best regards

Carlos Guzmán Álvarez
Vigo-Spain

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list