Client Certificate not reaching server

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


Date: Tue, 12 Oct 2004 09:29:05 -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

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 problem
    ... 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.framework.webservices)
  • 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)
  • HttpWebRequest client certificate private key problem (VB.NET 2002)
    ... I have a valid client certificate with a corresponding private key. ... certificate is in x509 format and the .cer file contains the private ... Q1- What kindof filedoes the CreateFromSignedFile accept? ...
    (microsoft.public.dotnet.security)
  • Re: SSL on Web server
    ... Can you import the .cer file on your desktop machine? ... If this fails then the cert was bogus. ... With regards to making enroll.exe work with server certs, ... >> HOW TO SETUP SERVER CERTIFICATE FOR WINCE WEB SERVER/SSL ON A DISPLAY ...
    (microsoft.public.windowsce.embedded)
  • Re: Password for certificate
    ... documentation for the webservice also shows an example where only a .cer file ... What I'm guessing is happening is that you supply the .cer file and .NET ... uses that to locate the matching certificate installed in the local store ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.security)