Client Certificate problem

From: NRao (NRao_at_discussions.microsoft.com)
Date: 10/12/04


Date: Tue, 12 Oct 2004 09:33:03 -0700

Hello Everbody,

 I have a class lib which is accessing a .aspx on web through httpwebrequest
and sending xml through post method. Server people provided me a .cer file. I
am adding that certificate file to httpwebrequest. But their side they do not
find the certificate. I tried following ways. I tried this with console app
as well as ASP.NET

1) Convert the .cer file into binary

2) Imported the .cer file into Certificate store(localcomputer/current user)
and exported the certificate into DER format .cer file and tried
CreateFromCertFile() method.

Can anybody please point right way

Also I have few questions.
1) what preventing the certificate to reach server?
2)I added the certificate to httpwebrequest and sent to my test site and
there I checked Request.ClientCertificate.IsPresent. But I always get false.
Why So? Even if it is not valid certificate should present. right?



Relevant Pages

  • Client Certificate not reaching server
    ... I have a class lib which is accessing a .aspx on web through httpwebrequest ... Server people provided me a .cer file. ... am adding that certificate file to httpwebrequest. ...
    (microsoft.public.dotnet.security)
  • Re: Trying to get PocketPC to sync with server - please help!
    ... Your admin should easily be able to get you a .cer file. ... properties of the certificate, and exporting it. ... The server is accessible by Outlook ...
    (microsoft.public.exchange.admin)
  • Re: regarding retrival of server certificate
    ... access your server and get the proxies working correctly by configuring the ... Once you can get the HttpWebRequest working and can get a response back, ... Joe Kaplan-MS MVP Directory Services Programming ... i have tried with SSlstream and got the certificate ...
    (microsoft.public.dotnet.security)
  • netsh error - 1312
    ... To do this we need to install and register a server ... I got a certificate (Web Server) from our enterprise cert server. ... it as a cer file and installed it on my development machine (Vista 64 ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: SSL for dummies... how to generate X509Certificate (*.DER) files?
    ... HttpWebRequest from the same machine you are executing the code, ... How was the server's certificate generated? ... In SSL, to get an encrypted channel, it is only required that the server has ... It must chain to trusted root on the client ...
    (microsoft.public.dotnet.security)