HttpWebRequest not finding SSL client certs in the 'Local Computer' store

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default RE: HttpWebRequest not finding SSL client certs in the 'Local Computer' store

    Hi Hari,

    Is your account an administrator account on the client computer?

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    [MSFT] Guest

  2. Similar Questions and Discussions

    1. Finding data files in local directory
      Say I have a bunch of XML files in the directory with my web app (or in a subdirectory) and I want the app to be able to create a list of all...
    2. Problem with local installation of the flex store sample.
      I've downloaded and installed the flex store sample. I unpacked the zip file into a c:\jrun\servers\cfusion\cfusion-ear\cfusion-war\flexstore...
    3. client certs (how to)
      Hello, I am trying to post to a site that requires me to use a client cert. I can get it to work for both windows and unix, but only on the...
    4. using client certs from asp.net
      Hi All, I'm following the How To:...
    5. Can't locate @INC & not finding files in local directory
      Hello - I've got several Perl scripts that use custom perl modules which are called from routines that are in the same directory as the scripts....
  3. #2

    Default RE: HttpWebRequest not finding SSL client certs in the 'Local Computer' store

    Regarding the issue, I suspect the certificate you used is in incorrect
    type (not Computer certificate). You may request a new computer
    certificate, and then install that certificate in the local computer
    certificate store to see if it will help. Here is an article on how to
    manage the certificate, hope this help:

    HOW TO: Manage Certificates in Windows 2000
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;320878[/url]

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    [MSFT] Guest

  4. #3

    Default RE: HttpWebRequest not finding SSL client certs in the 'Local Computer' store

    What is a "Computer certificate" ? Is there a particular attribute in X509Certificate that the .NET framwork code is looking for to see if it is a "Computer certificate"

    I am not getting my certs from Win 2000 CA. I am getting it from my own CA and later from Verisign

    regards
    har

    Hari Guest

  5. #4

    Default Re: HttpWebRequest not finding SSL client certs in the 'Local Computer' store

    Is it possible that the context the cert is created in doesn't give it
    access to the private key? Perhaps you need to use a cert that is installed
    in a CAPI store for this to work? I'm not sure exactly how it works, but I
    saw that you were using "cert from file" in your code and thought that
    perhaps the crypto API can't find the public key for a cert read from disk
    like that.

    Just a thought,

    Joe K.

    "Hari" <harimenon@community.nospam> wrote in message
    news:3F4E7783-F214-49EA-A7CD-CE1130C8B482@microsoft.com...
    > What is a "Computer certificate" ? Is there a particular attribute in
    X509Certificate that the .NET framwork code is looking for to see if it is a
    "Computer certificate" ?
    >
    > I am not getting my certs from Win 2000 CA. I am getting it from my own CA
    and later from Verisign.
    >
    > regards,
    > hari
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  6. #5

    Default Re: HttpWebRequest not finding SSL client certs in the 'Local Computer' store

    If I just remove the cert from the Local Computer store and add it to the Current User store, everything works fine. This would mean that the way the public key is being read is ok

    It looks like the .NET framework classes do not either look in the Local Computer store for the private keys or that they *do* find my cert there but because it looks for some attribute in the cert, it rejects it. In the 2nd case, I would like to know what attribute is that it is looking for

    Thanks
    Har

    Hari Guest

  7. #6

    Default RE: HttpWebRequest not finding SSL client certs in the 'Local Computer' store

    The second article was exactly what I was looking for. It worked great. Thanks

    One thing that was missing in it was that, by default, user defined datatypes may not be passed to the COM+ service (probably needs some custom martialling code for that). But as long as you stick to basic datatypes, everything works great if you just follow the steps mentioned in the article

    Thanks
    Har

    Hari Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139