ClientCertificate from LocalMachine Store

From: Joe Case (jcase4_at_nospamhotmail.com)
Date: 05/28/03

  • Next message: Nadia: "Re: Impersonation"
    Date: Wed, 28 May 2003 11:55:13 -0400
    
    

    I am trying to include a ClientCertificate in a HttpWebRequest. The
    Certificate is in the LocalMachine/My store and I am using the WSE X509
    classes to find the certificate in the LocalMachine/My store and add it to
    the ClientCertificates collection of the web request. The problem is that I
    get an error (System.Net.WebException: The underlying connection was closed:
    Could

    not establish secure channel for SSL/TLS. --->
    System.ComponentModel.Win32Exception: The message received was unexpected or
    badly formatted) when making the request unless the certificate ALSO exists
    in the CurrentUser/My store. Is having the certificate in the CurrentUser
    store a requirement when adding a ClientCertificate to an HttpWebRequest? If
    so, how can I work around this? I do not want to have to import the
    certificate into each user's certificate store. The client I am testing is a
    Console application and I am currently running it with Administrative
    privileges so this is not a Permissions issue accessing the certificate in
    the Local Machine store.

    Thanks in advance for any info on this and let me know if this question is
    better suited to a different group.

    Thanks

    Joe


  • Next message: Nadia: "Re: Impersonation"

    Relevant Pages

    • Re: Active Directory Federation Services
      ... that is associated with their profile and the machine itself has a store. ... Just wanted to let you know that I got the cert problem fixed. ... the user certificate store. ... FSP was looking for certs in the local ...
      (microsoft.public.windows.server.active_directory)
    • Re: Accessing certificate store from ASP.NET web project
      ... the cert must be in the local computer/personal) store - it will then open ... Have a look at the source code to open the right cert store... ... One of the locations requires a x509 certificate in order ... different user context than my vb.net web project. ...
      (microsoft.public.dotnet.security)
    • Re: Issues with SSL on Win CE 5.0
      ... the HKCU certificate store. ... and tell the web server to use it. ... The old cert was in. ...
      (microsoft.public.windowsce.embedded)
    • Re: Issues with SSL on Win CE 5.0
      ... the HKCU certificate store. ... and tell the web server to use it. ... The old cert was in. ...
      (microsoft.public.windowsce.embedded)
    • Re: SMS 2003 SP1 Client Install Problem or Policy Retreival Problem?
      ... > Failed to find running shell process ... >> It is possible that the crypto store has somehow been corrupted. ... >>> The MP is setup and thousands of other clients have access. ... >>> Failed to find the certificate in the store, ...
      (microsoft.public.sms.admin)