Re: regarding retrival of server certificate



As Joe already pointed out - use SSL - thats an easy and standard way to get a server certificate for validation and authentication.

You even have more control over the whole process by using the SslStream class in .NET 2.0

All other ways would involve an apache/OS specific way to transfer the cert to the client...

-----
Dominick Baier (http://www.leastprivilege.com)

thank for ur reponse
actually i want to get the certificate stored at the server and to
validate it
ho to get the certificate in my server is there any function?
please help me regarding issue...

regards
bharathi
Joe Kaplan wrote:

Are you using SSL? It takes care of that for you. If you want to do
something programmatic involving SSL and HTTP, use the HttpWebRequest
class in .NET to access the Apache server. If you want to get
details of the server's certificate, you can create an instance of a
class that implements ICertificatePolicy and use the
CheckValidationResult to get the server's certificate during the SSL
handshake and check to see if it is valid.

HTH,

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
<barathee_raja@xxxxxxxxxxx> wrote in message
news:1165398418.770961.98240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi,
am bharathi currently working in .net platform,in my application
iam in need of retriving the certificate stored at the server and to
validate the identity of the server.
my sever is winn.mygdc.com and it's a apache web server.
is there any options available in the .net to attain this.
please help me regarding this issue.

thanx in advance

regards
bharathi


.



Relevant Pages

  • Re: regarding retrival of server certificate
    ... get a server certificate for validation and authentication. ... validate the identity of the server. ...
    (microsoft.public.dotnet.security)
  • Re: Validating client cert from request
    ... > server certificate, not the client certificate. ... you may not need to do much to validate the server certificate at ... > all as .NET is notoriously picky about SSL server cert problems and will ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: PEAP in CE.NET
    ... > but cannot validate the server certificate. ... I am using the Cisco ACS ...
    (microsoft.public.security)
  • Re: ADFS and SSL Certificates
    ... The logic that I'd apply is that if you give a third party your certificate, ... Joe Kaplan-MS MVP Directory Services Programming ... need to export the resource federation server authentication certificate ... I'm not joe or ADFS guru:) but will try to do my best. ...
    (microsoft.public.windows.server.active_directory)
  • Re: regarding retrival of server certificate
    ... actually i want to get the certificate stored at the server and to ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... validate the identity of the server. ...
    (microsoft.public.dotnet.security)

Quantcast