[Mono-dev] Certificate Issue

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Sep 6 10:37:00 EDT 2005


Hello,

This looks very similar to what Loren Bandiera is doing with LAT.
http://people.mmgsecurity.com/~lorenb/lat/

You may want to check the mono email archives...

On Tue, 2005-06-09 at 08:17 -0600, Nachiappan Palaniappan wrote:
> Thanks for the immediate reply Sebastien. 
> I am contacting the LDAP Server. 
> I want to get the SSL certificate from the server and I need to store
> the retrieved certificate in the user store so that I can use that
> certificate later. 
> I'll check that certmgr code and come to you back , if needed. 
>  
> Thanks, 
> Palaniappan.
> 
> >>>Sebastien Pouliot <sebastien.pouliot at gmail.com> 09/06/05 11:42 am
> >>>
> Hello Palaniappan,
> 
> I'm not quite sure what you're looking for...
> 
> On Tue, 2005-06-09 at 02:48 -0600, Nachiappan Palaniappan wrote:
> >Hi,
> >  Is there any way to get the certificate as such from the server
> 
> What kind of server ?
> 
> If you want to retrieve the SSL certificate of a server then you can
> have a look at the certmgr source code.
> http://svn.myrealbox.com/viewcvs/trunk/mcs/tools/security/certmgr.cs?view=markup
> but this isn't perfect as the server doesn't have to send the complete
> (up to the root) certificate chain.
> 
> > and to store it in the local secret store?
> 
> there are two certificate stores, the user store and machine store,
> but
> there's no secret store (anyway the certificate contents are public).
> The same source code (certmgr.cs) shows how to use them.
> 
> Note that the store code is Mono specific (as was the SSL code). The
> MS
> FX doesn't have any store-related functionalities before 2.0.
> 
> >But I am able to get the certificate details from the
> >System.Security.Cryptography.X509Certificates class.
> 
> Yes that class will work with both a byte array buffer and with a
> filename. There is also a Mono.Security.X509.X509Certificate class in
> Mono.Security that will give you additional informations.
> 
> --
> Sebastien Pouliot
> email: sebastien at ximian.com
> blog: http://pages.infinit.net/ctech/
> 
> 




More information about the Mono-devel-list mailing list