Valid Certificate Authority

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

  1. #1

    Default Valid Certificate Authority

    Hi,

    I need to verify that a certificate is coming from a valid certificate
    authority. Does anybody know where I could obtain a list with that
    information?

    Thanks,
    cj


    Curtis Justus Guest

  2. Similar Questions and Discussions

    1. Win32::OLE and CAPICOM to find a certificate in certificate store will raise exception
      Hi, I am trying to use win32::OLE to access certificate store via CAPICOM. If certificates in the store meet the searching criteria, the...
    2. Win2003 and NT AUTHORITY\NetworkService
      We have an ASP.NET application on Win2003 box. This application runs under default user "NT AUTHORITY\NetworkService". We need to give right...
    3. Certificate Authority Server Service Stopped
      My Certificate Authority Server Service Stopped and gets the following error message: Event ID: 42 Description: Certificate Services did not start:...
    4. Certificate Server and Windows XP - Cannot install certificate
      Hello all, I would like to implement certificate server. I have installed the service on Win2003 server in standalone mode. I have created from...
    5. NT AUTHORITY\SYSTEM
      Might be a Task Scheduler which invokes a shutdown command. Disable it. 1. Click Start > Programs > Accessories > System Tools > Task Scheduler |...
  3. #2

    Default Re: Valid Certificate Authority

    The certificate will be trusted based on the trusted root certificates
    configured on the current machine. You can use the ICertificatePolicy class
    that I mentioned before to determine whether the CA for the cert was not
    trusted by examining the certificateProblem parameter in
    CheckValidationResult. I found a decent blog posting that shows what the
    values of the parameter can be (they are probably in the platform SDK
    somewhere...):

    [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]


    Joe K.

    "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in message
    news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > Hi,
    >
    > I need to verify that a certificate is coming from a valid certificate
    > authority. Does anybody know where I could obtain a list with that
    > information?
    >
    > Thanks,
    > cj
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: Valid Certificate Authority

    Using the SelfSSL internally (intranet) and the third check doesn't pass
    since we created the cert.

    Where does this code (CheckValidationResult) actually go in the web
    application??

    Harry

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > The certificate will be trusted based on the trusted root certificates
    > configured on the current machine. You can use the ICertificatePolicy
    class
    > that I mentioned before to determine whether the CA for the cert was not
    > trusted by examining the certificateProblem parameter in
    > CheckValidationResult. I found a decent blog posting that shows what the
    > values of the parameter can be (they are probably in the platform SDK
    > somewhere...):
    >
    > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    >
    >
    > Joe K.
    >
    > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in message
    > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > Hi,
    > >
    > > I need to verify that a certificate is coming from a valid certificate
    > > authority. Does anybody know where I could obtain a list with that
    > > information?
    > >
    > > Thanks,
    > > cj
    > >
    > >
    >
    >

    Harry Simpson Guest

  5. #4

    Default Re: Valid Certificate Authority

    The code here shows how to create a class that implements
    ICertificatePolicy:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?fra me=true[/url]

    To use it, you add a new instance of your class to the
    ServicePointManager.CertificatePolicy property BEFORE you make any
    WebRequests (or SOAP calls or anything else that wraps WebRequest).

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTopic.asp?frame=true[/url]

    Then, you can enforce your own certificate policy based on the rules you
    code in your CheckValidationResult Method.

    Joe K.

    "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    news:OH7xojxTEHA.1472@TK2MSFTNGP12.phx.gbl...
    > Using the SelfSSL internally (intranet) and the third check doesn't pass
    > since we created the cert.
    >
    > Where does this code (CheckValidationResult) actually go in the web
    > application??
    >
    > Harry
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > > The certificate will be trusted based on the trusted root certificates
    > > configured on the current machine. You can use the ICertificatePolicy
    > class
    > > that I mentioned before to determine whether the CA for the cert was not
    > > trusted by examining the certificateProblem parameter in
    > > CheckValidationResult. I found a decent blog posting that shows what
    the
    > > values of the parameter can be (they are probably in the platform SDK
    > > somewhere...):
    > >
    > > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    > >
    > >
    > > Joe K.
    > >
    > > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in message
    > > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > > Hi,
    > > >
    > > > I need to verify that a certificate is coming from a valid certificate
    > > > authority. Does anybody know where I could obtain a list with that
    > > > information?
    > > >
    > > > Thanks,
    > > > cj
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  6. #5

    Default Re: Valid Certificate Authority

    Thanks Joe,

    The code actually didn't work but it's probablky just me......

    Was wondering where you put pre-request code in an ASP.NET app??

    Harry

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:O%236L97yTEHA.808@tk2msftngp13.phx.gbl...
    > The code here shows how to create a class that implements
    > ICertificatePolicy:
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?fra me=true[/url]
    >
    > To use it, you add a new instance of your class to the
    > ServicePointManager.CertificatePolicy property BEFORE you make any
    > WebRequests (or SOAP calls or anything else that wraps WebRequest).
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTopic.asp?frame=true[/url]
    >
    > Then, you can enforce your own certificate policy based on the rules you
    > code in your CheckValidationResult Method.
    >
    > Joe K.
    >
    > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > news:OH7xojxTEHA.1472@TK2MSFTNGP12.phx.gbl...
    > > Using the SelfSSL internally (intranet) and the third check doesn't pass
    > > since we created the cert.
    > >
    > > Where does this code (CheckValidationResult) actually go in the web
    > > application??
    > >
    > > Harry
    > >
    > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    wrote
    > > in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > > > The certificate will be trusted based on the trusted root certificates
    > > > configured on the current machine. You can use the ICertificatePolicy
    > > class
    > > > that I mentioned before to determine whether the CA for the cert was
    not
    > > > trusted by examining the certificateProblem parameter in
    > > > CheckValidationResult. I found a decent blog posting that shows what
    > the
    > > > values of the parameter can be (they are probably in the platform SDK
    > > > somewhere...):
    > > >
    > > > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    > > >
    > > >
    > > > Joe K.
    > > >
    > > > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in message
    > > > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > > > Hi,
    > > > >
    > > > > I need to verify that a certificate is coming from a valid
    certificate
    > > > > authority. Does anybody know where I could obtain a list with that
    > > > > information?
    > > > >
    > > > > Thanks,
    > > > > cj
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Harry Simpson Guest

  7. #6

    Default Re: Valid Certificate Authority

    I'm not sure I understand. Is your ASP.NET application making a call to
    another web site via something based on HttpWebRequest or a web service
    call? If so, you would do it then. If not, how are you calling another
    server?

    If you aren't calling another server, then why would you need to check a
    server's certificate?

    Joe K.

    "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    news:usTnTpzTEHA.3976@TK2MSFTNGP09.phx.gbl...
    > Thanks Joe,
    >
    > The code actually didn't work but it's probablky just me......
    >
    > Was wondering where you put pre-request code in an ASP.NET app??
    >
    > Harry
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:O%236L97yTEHA.808@tk2msftngp13.phx.gbl...
    > > The code here shows how to create a class that implements
    > > ICertificatePolicy:
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?fra me=true[/url]
    > >
    > > To use it, you add a new instance of your class to the
    > > ServicePointManager.CertificatePolicy property BEFORE you make any
    > > WebRequests (or SOAP calls or anything else that wraps WebRequest).
    > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTopic.asp?frame=true[/url]
    > >
    > > Then, you can enforce your own certificate policy based on the rules you
    > > code in your CheckValidationResult Method.
    > >
    > > Joe K.
    > >
    > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > news:OH7xojxTEHA.1472@TK2MSFTNGP12.phx.gbl...
    > > > Using the SelfSSL internally (intranet) and the third check doesn't
    pass
    > > > since we created the cert.
    > > >
    > > > Where does this code (CheckValidationResult) actually go in the web
    > > > application??
    > > >
    > > > Harry
    > > >
    > > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    > wrote
    > > > in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > > > > The certificate will be trusted based on the trusted root
    certificates
    > > > > configured on the current machine. You can use the
    ICertificatePolicy
    > > > class
    > > > > that I mentioned before to determine whether the CA for the cert was
    > not
    > > > > trusted by examining the certificateProblem parameter in
    > > > > CheckValidationResult. I found a decent blog posting that shows
    what
    > > the
    > > > > values of the parameter can be (they are probably in the platform
    SDK
    > > > > somewhere...):
    > > > >
    > > > > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    > > > >
    > > > >
    > > > > Joe K.
    > > > >
    > > > > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in
    message
    > > > > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > > > > Hi,
    > > > > >
    > > > > > I need to verify that a certificate is coming from a valid
    > certificate
    > > > > > authority. Does anybody know where I could obtain a list with
    that
    > > > > > information?
    > > > > >
    > > > > > Thanks,
    > > > > > cj
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  8. #7

    Default Re: Valid Certificate Authority

    Hi Joe,

    I'm merely starting an ASP.NET web application on an intranet server from a
    browser within the same intranet.

    Since SelfSSL uses the name of the machine (SIMPSON) it doesn't reconcile to
    the web's name "MyWebApp" when i make the call to it using
    [url]https://SIMPSON/MyWebApp[/url]
    so i get the third check not true notice. My app is not internet but
    intranet with no internet Whois type url.

    Harry

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:OTubsG2TEHA.1036@TK2MSFTNGP09.phx.gbl...
    > I'm not sure I understand. Is your ASP.NET application making a call to
    > another web site via something based on HttpWebRequest or a web service
    > call? If so, you would do it then. If not, how are you calling another
    > server?
    >
    > If you aren't calling another server, then why would you need to check a
    > server's certificate?
    >
    > Joe K.
    >
    > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > news:usTnTpzTEHA.3976@TK2MSFTNGP09.phx.gbl...
    > > Thanks Joe,
    > >
    > > The code actually didn't work but it's probablky just me......
    > >
    > > Was wondering where you put pre-request code in an ASP.NET app??
    > >
    > > Harry
    > >
    > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    wrote
    > > in message news:O%236L97yTEHA.808@tk2msftngp13.phx.gbl...
    > > > The code here shows how to create a class that implements
    > > > ICertificatePolicy:
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?fra me=true[/url]
    > > >
    > > > To use it, you add a new instance of your class to the
    > > > ServicePointManager.CertificatePolicy property BEFORE you make any
    > > > WebRequests (or SOAP calls or anything else that wraps WebRequest).
    > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTopic.asp?frame=true[/url]
    > > >
    > > > Then, you can enforce your own certificate policy based on the rules
    you
    > > > code in your CheckValidationResult Method.
    > > >
    > > > Joe K.
    > > >
    > > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > > news:OH7xojxTEHA.1472@TK2MSFTNGP12.phx.gbl...
    > > > > Using the SelfSSL internally (intranet) and the third check doesn't
    > pass
    > > > > since we created the cert.
    > > > >
    > > > > Where does this code (CheckValidationResult) actually go in the web
    > > > > application??
    > > > >
    > > > > Harry
    > > > >
    > > > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    > > wrote
    > > > > in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > > > > > The certificate will be trusted based on the trusted root
    > certificates
    > > > > > configured on the current machine. You can use the
    > ICertificatePolicy
    > > > > class
    > > > > > that I mentioned before to determine whether the CA for the cert
    was
    > > not
    > > > > > trusted by examining the certificateProblem parameter in
    > > > > > CheckValidationResult. I found a decent blog posting that shows
    > what
    > > > the
    > > > > > values of the parameter can be (they are probably in the platform
    > SDK
    > > > > > somewhere...):
    > > > > >
    > > > > > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    > > > > >
    > > > > >
    > > > > > Joe K.
    > > > > >
    > > > > > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in
    > message
    > > > > > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > > > > > Hi,
    > > > > > >
    > > > > > > I need to verify that a certificate is coming from a valid
    > > certificate
    > > > > > > authority. Does anybody know where I could obtain a list with
    > that
    > > > > > > information?
    > > > > > >
    > > > > > > Thanks,
    > > > > > > cj
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Harry Simpson Guest

  9. #8

    Default Re: Valid Certificate Authority

    Ok, the thing is here that it is your browser that is complaining about the
    server certificate, not the server that is complaining. Since your browser
    is not sending a client certificate to the server, there is nothing for the
    server to check. Thus there is no code you can put in your web application.

    However, SSL should match the name on the certificate to the hostname
    (SIMPSON) in your case, so it should work. What certificate warning do you
    get from IE and what are the details?

    Joe K.

    "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    news:eNUJC67TEHA.1048@tk2msftngp13.phx.gbl...
    > Hi Joe,
    >
    > I'm merely starting an ASP.NET web application on an intranet server from
    a
    > browser within the same intranet.
    >
    > Since SelfSSL uses the name of the machine (SIMPSON) it doesn't reconcile
    to
    > the web's name "MyWebApp" when i make the call to it using
    > [url]https://SIMPSON/MyWebApp[/url]
    > so i get the third check not true notice. My app is not internet but
    > intranet with no internet Whois type url.
    >
    > Harry
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:OTubsG2TEHA.1036@TK2MSFTNGP09.phx.gbl...
    > > I'm not sure I understand. Is your ASP.NET application making a call to
    > > another web site via something based on HttpWebRequest or a web service
    > > call? If so, you would do it then. If not, how are you calling another
    > > server?
    > >
    > > If you aren't calling another server, then why would you need to check a
    > > server's certificate?
    > >
    > > Joe K.
    > >
    > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > news:usTnTpzTEHA.3976@TK2MSFTNGP09.phx.gbl...
    > > > Thanks Joe,
    > > >
    > > > The code actually didn't work but it's probablky just me......
    > > >
    > > > Was wondering where you put pre-request code in an ASP.NET app??
    > > >
    > > > Harry
    > > >
    > > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    > wrote
    > > > in message news:O%236L97yTEHA.808@tk2msftngp13.phx.gbl...
    > > > > The code here shows how to create a class that implements
    > > > > ICertificatePolicy:
    > > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?fra me=true[/url]
    > > > >
    > > > > To use it, you add a new instance of your class to the
    > > > > ServicePointManager.CertificatePolicy property BEFORE you make any
    > > > > WebRequests (or SOAP calls or anything else that wraps WebRequest).
    > > > >
    > > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTopic.asp?frame=true[/url]
    > > > >
    > > > > Then, you can enforce your own certificate policy based on the rules
    > you
    > > > > code in your CheckValidationResult Method.
    > > > >
    > > > > Joe K.
    > > > >
    > > > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > > > news:OH7xojxTEHA.1472@TK2MSFTNGP12.phx.gbl...
    > > > > > Using the SelfSSL internally (intranet) and the third check
    doesn't
    > > pass
    > > > > > since we created the cert.
    > > > > >
    > > > > > Where does this code (CheckValidationResult) actually go in the
    web
    > > > > > application??
    > > > > >
    > > > > > Harry
    > > > > >
    > > > > > "Joe Kaplan (MVP - ADSI)"
    <joseph.e.kaplan@removethis.accenture.com>
    > > > wrote
    > > > > > in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > > > > > > The certificate will be trusted based on the trusted root
    > > certificates
    > > > > > > configured on the current machine. You can use the
    > > ICertificatePolicy
    > > > > > class
    > > > > > > that I mentioned before to determine whether the CA for the cert
    > was
    > > > not
    > > > > > > trusted by examining the certificateProblem parameter in
    > > > > > > CheckValidationResult. I found a decent blog posting that shows
    > > what
    > > > > the
    > > > > > > values of the parameter can be (they are probably in the
    platform
    > > SDK
    > > > > > > somewhere...):
    > > > > > >
    > > > > > > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    > > > > > >
    > > > > > >
    > > > > > > Joe K.
    > > > > > >
    > > > > > > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in
    > > message
    > > > > > > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > > > > > > Hi,
    > > > > > > >
    > > > > > > > I need to verify that a certificate is coming from a valid
    > > > certificate
    > > > > > > > authority. Does anybody know where I could obtain a list with
    > > that
    > > > > > > > information?
    > > > > > > >
    > > > > > > > Thanks,
    > > > > > > > cj
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  10. #9

    Default Re: Valid Certificate Authority

    Joe,

    It's the third check on the Security Alert dialog box:
    "The name on the security certificate is invalid or does not match the name
    of the site"

    Harry

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:u1iYKb8TEHA.3012@tk2msftngp13.phx.gbl...
    > Ok, the thing is here that it is your browser that is complaining about
    the
    > server certificate, not the server that is complaining. Since your
    browser
    > is not sending a client certificate to the server, there is nothing for
    the
    > server to check. Thus there is no code you can put in your web
    application.
    >
    > However, SSL should match the name on the certificate to the hostname
    > (SIMPSON) in your case, so it should work. What certificate warning do
    you
    > get from IE and what are the details?
    >
    > Joe K.
    >
    > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > news:eNUJC67TEHA.1048@tk2msftngp13.phx.gbl...
    > > Hi Joe,
    > >
    > > I'm merely starting an ASP.NET web application on an intranet server
    from
    > a
    > > browser within the same intranet.
    > >
    > > Since SelfSSL uses the name of the machine (SIMPSON) it doesn't
    reconcile
    > to
    > > the web's name "MyWebApp" when i make the call to it using
    > > [url]https://SIMPSON/MyWebApp[/url]
    > > so i get the third check not true notice. My app is not internet but
    > > intranet with no internet Whois type url.
    > >
    > > Harry
    > >
    > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    wrote
    > > in message news:OTubsG2TEHA.1036@TK2MSFTNGP09.phx.gbl...
    > > > I'm not sure I understand. Is your ASP.NET application making a call
    to
    > > > another web site via something based on HttpWebRequest or a web
    service
    > > > call? If so, you would do it then. If not, how are you calling
    another
    > > > server?
    > > >
    > > > If you aren't calling another server, then why would you need to check
    a
    > > > server's certificate?
    > > >
    > > > Joe K.
    > > >
    > > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > > news:usTnTpzTEHA.3976@TK2MSFTNGP09.phx.gbl...
    > > > > Thanks Joe,
    > > > >
    > > > > The code actually didn't work but it's probablky just me......
    > > > >
    > > > > Was wondering where you put pre-request code in an ASP.NET app??
    > > > >
    > > > > Harry
    > > > >
    > > > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    > > wrote
    > > > > in message news:O%236L97yTEHA.808@tk2msftngp13.phx.gbl...
    > > > > > The code here shows how to create a class that implements
    > > > > > ICertificatePolicy:
    > > > > >
    > > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?fra me=true[/url]
    > > > > >
    > > > > > To use it, you add a new instance of your class to the
    > > > > > ServicePointManager.CertificatePolicy property BEFORE you make any
    > > > > > WebRequests (or SOAP calls or anything else that wraps
    WebRequest).
    > > > > >
    > > > > >
    > > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTopic.asp?frame=true[/url]
    > > > > >
    > > > > > Then, you can enforce your own certificate policy based on the
    rules
    > > you
    > > > > > code in your CheckValidationResult Method.
    > > > > >
    > > > > > Joe K.
    > > > > >
    > > > > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > > > > news:OH7xojxTEHA.1472@TK2MSFTNGP12.phx.gbl...
    > > > > > > Using the SelfSSL internally (intranet) and the third check
    > doesn't
    > > > pass
    > > > > > > since we created the cert.
    > > > > > >
    > > > > > > Where does this code (CheckValidationResult) actually go in the
    > web
    > > > > > > application??
    > > > > > >
    > > > > > > Harry
    > > > > > >
    > > > > > > "Joe Kaplan (MVP - ADSI)"
    > <joseph.e.kaplan@removethis.accenture.com>
    > > > > wrote
    > > > > > > in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > > > > > > > The certificate will be trusted based on the trusted root
    > > > certificates
    > > > > > > > configured on the current machine. You can use the
    > > > ICertificatePolicy
    > > > > > > class
    > > > > > > > that I mentioned before to determine whether the CA for the
    cert
    > > was
    > > > > not
    > > > > > > > trusted by examining the certificateProblem parameter in
    > > > > > > > CheckValidationResult. I found a decent blog posting that
    shows
    > > > what
    > > > > > the
    > > > > > > > values of the parameter can be (they are probably in the
    > platform
    > > > SDK
    > > > > > > > somewhere...):
    > > > > > > >
    > > > > > > > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    > > > > > > >
    > > > > > > >
    > > > > > > > Joe K.
    > > > > > > >
    > > > > > > > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote in
    > > > message
    > > > > > > > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > > > > > > > Hi,
    > > > > > > > >
    > > > > > > > > I need to verify that a certificate is coming from a valid
    > > > > certificate
    > > > > > > > > authority. Does anybody know where I could obtain a list
    with
    > > > that
    > > > > > > > > information?
    > > > > > > > >
    > > > > > > > > Thanks,
    > > > > > > > > cj
    > > > > > > > >
    > > > > > > > >
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Harry Simpson Guest

  11. #10

    Default Re: Valid Certificate Authority

    I think that dialog allows you to bring up the name of the certificate in
    the certificate viewer, so you should be able to check that to verify that
    the name on the cert is actually equal to SIMPSON. If it is not, then that
    is the problem. You can either change the certificate to match the hostname
    or change the hostname (via DNS, hosts file or whatever) to match the cert.

    HTH,

    Joe K.

    "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    news:OB$DjK$TEHA.2972@TK2MSFTNGP12.phx.gbl...
    > Joe,
    >
    > It's the third check on the Security Alert dialog box:
    > "The name on the security certificate is invalid or does not match the
    name
    > of the site"
    >
    > Harry
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:u1iYKb8TEHA.3012@tk2msftngp13.phx.gbl...
    > > Ok, the thing is here that it is your browser that is complaining about
    > the
    > > server certificate, not the server that is complaining. Since your
    > browser
    > > is not sending a client certificate to the server, there is nothing for
    > the
    > > server to check. Thus there is no code you can put in your web
    > application.
    > >
    > > However, SSL should match the name on the certificate to the hostname
    > > (SIMPSON) in your case, so it should work. What certificate warning do
    > you
    > > get from IE and what are the details?
    > >
    > > Joe K.
    > >
    > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > news:eNUJC67TEHA.1048@tk2msftngp13.phx.gbl...
    > > > Hi Joe,
    > > >
    > > > I'm merely starting an ASP.NET web application on an intranet server
    > from
    > > a
    > > > browser within the same intranet.
    > > >
    > > > Since SelfSSL uses the name of the machine (SIMPSON) it doesn't
    > reconcile
    > > to
    > > > the web's name "MyWebApp" when i make the call to it using
    > > > [url]https://SIMPSON/MyWebApp[/url]
    > > > so i get the third check not true notice. My app is not internet but
    > > > intranet with no internet Whois type url.
    > > >
    > > > Harry
    > > >
    > > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    > wrote
    > > > in message news:OTubsG2TEHA.1036@TK2MSFTNGP09.phx.gbl...
    > > > > I'm not sure I understand. Is your ASP.NET application making a
    call
    > to
    > > > > another web site via something based on HttpWebRequest or a web
    > service
    > > > > call? If so, you would do it then. If not, how are you calling
    > another
    > > > > server?
    > > > >
    > > > > If you aren't calling another server, then why would you need to
    check
    > a
    > > > > server's certificate?
    > > > >
    > > > > Joe K.
    > > > >
    > > > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > > > news:usTnTpzTEHA.3976@TK2MSFTNGP09.phx.gbl...
    > > > > > Thanks Joe,
    > > > > >
    > > > > > The code actually didn't work but it's probablky just me......
    > > > > >
    > > > > > Was wondering where you put pre-request code in an ASP.NET app??
    > > > > >
    > > > > > Harry
    > > > > >
    > > > > > "Joe Kaplan (MVP - ADSI)"
    <joseph.e.kaplan@removethis.accenture.com>
    > > > wrote
    > > > > > in message news:O%236L97yTEHA.808@tk2msftngp13.phx.gbl...
    > > > > > > The code here shows how to create a class that implements
    > > > > > > ICertificatePolicy:
    > > > > > >
    > > > > >
    > > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?fra me=true[/url]
    > > > > > >
    > > > > > > To use it, you add a new instance of your class to the
    > > > > > > ServicePointManager.CertificatePolicy property BEFORE you make
    any
    > > > > > > WebRequests (or SOAP calls or anything else that wraps
    > WebRequest).
    > > > > > >
    > > > > > >
    > > > > >
    > > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTopic.asp?frame=true[/url]
    > > > > > >
    > > > > > > Then, you can enforce your own certificate policy based on the
    > rules
    > > > you
    > > > > > > code in your CheckValidationResult Method.
    > > > > > >
    > > > > > > Joe K.
    > > > > > >
    > > > > > > "Harry Simpson" <hssimpson@nospamphgt.net> wrote in message
    > > > > > > news:OH7xojxTEHA.1472@TK2MSFTNGP12.phx.gbl...
    > > > > > > > Using the SelfSSL internally (intranet) and the third check
    > > doesn't
    > > > > pass
    > > > > > > > since we created the cert.
    > > > > > > >
    > > > > > > > Where does this code (CheckValidationResult) actually go in
    the
    > > web
    > > > > > > > application??
    > > > > > > >
    > > > > > > > Harry
    > > > > > > >
    > > > > > > > "Joe Kaplan (MVP - ADSI)"
    > > <joseph.e.kaplan@removethis.accenture.com>
    > > > > > wrote
    > > > > > > > in message news:eq6OqzwTEHA.3988@TK2MSFTNGP10.phx.gbl...
    > > > > > > > > The certificate will be trusted based on the trusted root
    > > > > certificates
    > > > > > > > > configured on the current machine. You can use the
    > > > > ICertificatePolicy
    > > > > > > > class
    > > > > > > > > that I mentioned before to determine whether the CA for the
    > cert
    > > > was
    > > > > > not
    > > > > > > > > trusted by examining the certificateProblem parameter in
    > > > > > > > > CheckValidationResult. I found a decent blog posting that
    > shows
    > > > > what
    > > > > > > the
    > > > > > > > > values of the parameter can be (they are probably in the
    > > platform
    > > > > SDK
    > > > > > > > > somewhere...):
    > > > > > > > >
    > > > > > > > > [url]http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx[/url]
    > > > > > > > >
    > > > > > > > >
    > > > > > > > > Joe K.
    > > > > > > > >
    > > > > > > > > "Curtis Justus" <cjustus-nospam@ser.nospam.itis.com> wrote
    in
    > > > > message
    > > > > > > > > news:ePvVDovTEHA.1548@TK2MSFTNGP11.phx.gbl...
    > > > > > > > > > Hi,
    > > > > > > > > >
    > > > > > > > > > I need to verify that a certificate is coming from a valid
    > > > > > certificate
    > > > > > > > > > authority. Does anybody know where I could obtain a list
    > with
    > > > > that
    > > > > > > > > > information?
    > > > > > > > > >
    > > > > > > > > > Thanks,
    > > > > > > > > > cj
    > > > > > > > > >
    > > > > > > > > >
    > > > > > > > >
    > > > > > > > >
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) 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