Re: Valid Certificate Authority
From: Harry Simpson (hssimpson_at_nospamphgt.net)
Date: 06/11/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: VB.NET Assembly denied access to System.Web. Help!"
- Previous message: AFN: "VB.NET Assembly denied access to System.Web. Help!"
- In reply to: Joe Kaplan \(MVP - ADSI\): "Re: Valid Certificate Authority"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Valid Certificate Authority"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Valid Certificate Authority"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 10 Jun 2004 17:31:00 -0500
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:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetICertificatePolicyClassTopic.asp?frame=true
>
> 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).
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetServicePointManagerClassCertificatePolicyTopic.asp?frame=true
>
> 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...):
> > >
> > > http://weblogs.asp.net/wim/archive/2004/04/02/106281.aspx
> > >
> > >
> > > 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
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: VB.NET Assembly denied access to System.Web. Help!"
- Previous message: AFN: "VB.NET Assembly denied access to System.Web. Help!"
- In reply to: Joe Kaplan \(MVP - ADSI\): "Re: Valid Certificate Authority"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Valid Certificate Authority"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Valid Certificate Authority"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|