Hi Sebastian,
thanks. I found the issue ... It seems that ASP was not handling or
accepting the Certficate. I got some nice info on :
http://weblogs.asp.net/jan/archive/2003/12/04/41154.aspx
I have added this piece of code before requesting the TICKET:
ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
Which is calling to the class below.
saludos,
Jean
p.s.: (I do speak spanish)
public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy
{
private const string TRUSTED_CERTIFIED =
"PUT_HERE_THE_ISSUER_OF_THE_CERTIFICATE_OR_ANY_OTHER_RULE";
public TrustAllCertificatePolicy() { }
public bool CheckValidationResult(ServicePoint sp,
X509Certificate cert, WebRequest req, int problem)
{
return false;
if (cert.Issuer == TRUSTED_CERTIFIED)
return true;
else
return false;
}
}
On 5/25/07, Sebastian Stranieri <[EMAIL PROTECTED]> wrote:
> If you want to install a SSL Certificate try with the ISS6 Resource Kit,
> tool SELFSSL.
>
> Regards
>
> Sebastian
> PD: Anyone talk in spanish here?
>
>
> On 5/24/07, Jean Verger <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I'm integrating CAS with our ASP application (over IIS).
> >
> > The .NET code provided in
> >
> http://www.ja-sig.org/wiki/display/CASC/ASP.NET+Forms+Authentication
> > could do SSO
> > with other application and our CAS server.
> >
> > Sincerely, the code was just so straight forward .. pretty much copy
> > paste, modify the CAS url serve ... and there it goes SSO. Congrats.
> >
> > Unfortunately, Im having a problem when I get to this part of the code:
> >
> > string validateurl = CASHOST + "serviceValidate?" +
> > "ticket=" + tkt + "&"+
> > "service=" + service;
> > StreamReader Reader = new StreamReader( new
> WebClient().OpenRead(validateurl));
> >
> > I have the following exception:
> >
> > "Exception Details:
> > System.Security.Authentication.AuthenticationException:
> The remote
> > certificate is invalid according to the validation procedure."
> >
> > Althought I can browse that url in my browser (which returns the user
> > name), I can not do it through the ASP .NET code ... I believe it is
> > related to https, certificates and maybe IIS ...
> >
> > Should I install any certificate in IIS? some missing .NET code? some
> > hint/light on this issue?
> >
> > My second question is ... what happens with CASP? could anyone email
> > some info on CASP? The website
> > (http://opensource.case.edu/projects/CAS/wiki/CASP )
> seems down.
> >
> > thanks a lot!
> >
> > Jean
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected]
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas