Request.ClientCerficate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Meels Lilbok

    Request.ClientCerficate

    Hi

    I have a problem with Request.ClientC erficate
    IIS 6. ASP solution,Win200 3R2

    Whe i call Request.ClientC erficate it does to nothing.
    All settings , certifcates aso. are OK. because on another server same
    solution works perfectly!
    No errors, nothing., it just does not work.

    Any ideas?


    Best regards;
    Meelis

  • Andy

    #2
    Re: Request.ClientC erficate

    How and where are you requesting the client certificate? Is this
    through program code (ie VB.NET), a properties sheet (from what
    application), or because of a call to a website from inside of
    internet explorer?

    Client certificates identify client computers to server computers
    under the Kerberos scheme. Does your server need to have kerberos
    setup?

    Its hard to tell what's wrong without really knowing what you are
    trying to do...because there are so many things you can do with
    certificates.

    Andy

    Comment

    • Meelis Lilbok

      #3
      Re: Request.ClientC erficate

      Hi Andy

      Im requesting client certificate trough ASP(old asp) code.
      ASP page runs under IIS 6.Server certificate is ok, and webpage is set to
      accept client certificates.
      Testing with Internet Explorer 6 and 7. Client certificate is read from
      Estonian National ID Card.


      testing with code;
      <%
      For Each strKey in Request.ClientC ertificate
      Response.Write strkey & " = " & Request.ClientC ertificate(strk ey) & "<BR>"
      Next
      %>

      On another server all works fine, when i call this asp page, "select a
      digital certificate" window pops up even when no id-card is inserted.
      On this problematic server it does not work.




      Meelis


      "Andy" <anedza@infot ek-consulting.comk irjutas sõnumis news:
      3c2f5d4e-afc5-480a-8c63-4cc06cca5469...le groups.com...
      How and where are you requesting the client certificate? Is this
      through program code (ie VB.NET), a properties sheet (from what
      application), or because of a call to a website from inside of
      internet explorer?
      >
      Client certificates identify client computers to server computers
      under the Kerberos scheme. Does your server need to have kerberos
      setup?
      >
      Its hard to tell what's wrong without really knowing what you are
      trying to do...because there are so many things you can do with
      certificates.
      >
      Andy

      Comment

      • Andy

        #4
        Re: Request.ClientC erficate

        In your code, you aren't checking to see if any certificates were
        received at all (by checking for a count before you go into the for
        each loop). If the count is zero, you should display an error message
        stating no certificates were received.

        <%
        For Each strKey in Request.ClientC ertificate
        Response.Write strkey & " = " & Request.ClientC ertificate(strk ey) &
        "<BR>"
        Next
        %>

        Because you don't crash, your results indicate that no certificates
        have been sent by the client when it issued a request to your server.
        Check your client browser security settings to ensure that the browser
        isn't stopping this information from being sent.

        Also, should the in clause of your for each be
        Request.ClientC ertificates, which is the actual collection of the
        certificates sent?

        Andy

        Comment

        • Meels Lilbok

          #5
          Re: Request.ClientC erficate

          Hi Andy

          Yes, i'm not checking Count beacuse i wanted to get error message.
          But there is no error, Count is always 0.

          As i sayd, its not browser related problem, because on another server all
          works fine when i call this asp page from IE.

          Meelis



          "Andy" <anedza@infot ek-consulting.comk irjutas sõnumis news:
          3c631a9f-477e-4acf-b8c3-4459fc146c0b...l egroups.com...
          In your code, you aren't checking to see if any certificates were
          received at all (by checking for a count before you go into the for
          each loop). If the count is zero, you should display an error message
          stating no certificates were received.
          >
          <%
          For Each strKey in Request.ClientC ertificate
          Response.Write strkey & " = " & Request.ClientC ertificate(strk ey) &
          "<BR>"
          Next
          %>
          >
          Because you don't crash, your results indicate that no certificates
          have been sent by the client when it issued a request to your server.
          Check your client browser security settings to ensure that the browser
          isn't stopping this information from being sent.
          >
          Also, should the in clause of your for each be
          Request.ClientC ertificates, which is the actual collection of the
          certificates sent?
          >
          Andy

          Comment

          • Meels Lilbok

            #6
            Re: Request.ClientC erficate

            found similar problem in archives




            Meelis





            "Meels Lilbok" <meelis.lilbok@ deltmar.eekirju tas sõnumis news:
            u#rqTYIeIHA.471 2@TK2MSFTNGP04. phx.gbl...
            Hi
            >
            I have a problem with Request.ClientC erficate
            IIS 6. ASP solution,Win200 3R2
            >
            Whe i call Request.ClientC erficate it does to nothing.
            All settings , certifcates aso. are OK. because on another server same
            solution works perfectly!
            No errors, nothing., it just does not work.
            >
            Any ideas?
            >
            >
            Best regards;
            Meelis

            Comment

            • David Wang

              #7
              Re: Request.ClientC erficate

              This sounds like user misconfiguratio n of the server because as you
              say, the same code works on another server, and it works from
              different clients.

              Verify you actually have identifical configuration between the working
              and non-working server. If you automate and script the deployment of
              your servers that would not be an issue, but if you hand-configure
              servers, they will likely fall out of sync no matter what you do.


              //David
              David Wang on IIS, ISAPI, Virtual Server, and whatever else I fancy...


              //



              On Feb 26, 11:52 pm, "Meels Lilbok" <meelis.lil...@ deltmar.eewrote :
              found similar problem in archives
              >

              >
              Meelis
              >
              "Meels Lilbok" <meelis.lil...@ deltmar.eekirju tas sõnumis news:
              u#rqTYIeIHA.4.. .@TK2MSFTNGP04. phx.gbl...
              >
              >
              >
              Hi
              >
              I have a problem with  Request.ClientC erficate
              IIS 6. ASP solution,Win200 3R2
              >
              Whe i call Request.ClientC erficate it does to nothing.
              All settings , certifcates aso. are OK. because on another server same
              solution works perfectly!
              No errors, nothing., it just does not work.
              >
              Any ideas?
              >
              Best regards;
              Meelis- Hide quoted text -
              >
              - Show quoted text -

              Comment

              Working...