[Mono-dev] Certificate Issue
sebastien.pouliot at gmail.com
Tue Sep 6 07:42:24 EDT 2005
I'm not quite sure what you're looking for...
On Tue, 2005-06-09 at 02:48 -0600, Nachiappan Palaniappan wrote:
> 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.
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.
email: sebastien at ximian.com
More information about the Mono-devel-list