Re: .NET App cannot connect to Apache SSL server

From: Mike (Mike_at_discussions.microsoft.com)
Date: 07/28/04


Date: Tue, 27 Jul 2004 15:26:04 -0700

Hi Joe -

Thanks for this. It turns out that the server is using TSL 1.o and .Net don't speak it. I have to call MS and pay for a support call to get a patch that will work :(

-- 
Michael Marsh
Consultant
Pantano Software
"Joe Kaplan (MVP - ADSI)" wrote:
> I'd suspect an SSL problem with the certificate, possibly having to do with
> a naming or trust issue.  You might check the event log for Schannel errors
> that can provide more details.
> 
> People usually get around this problem by either fixing the cert problem or
> configuring a custom ICertificatePolicy class that overrides the response to
> the error you are getting and allows the operation to proceed.  There is a
> nice sample in the Framework SDK reference for ICertificatePolicy.
> 
> Joe K.
> 
> "Mike" <Mike@discussions.microsoft.com> wrote in message
> news:A7FBB338-EACB-43CE-8D73-63FBB756D7A6@microsoft.com...
> > Hello All -
> >
> > I have a small app that is trying to access an SSL/TLS server that's
> running Apache on Unix.  I get "The underlying connection was closed: could
> not establish a secure connection for SSL/TLS."  The code is:
> >
> > .
> > .
> > .
> >  string myURL = "https://some.apache.web.server/some.wsdl/";
> >
> >  WebRequest webreq;
> >  WebResponse webres;
> >
> >  try
> >  {
> >   webreq = WebRequest.Create(myURL);
> >   webres = webreq.GetResponse();
> >  }
> >  catch(Exception exc)
> >  {
> >   richTextBoxWSDL.Text += exc.Message;
> >   return;
> >  }
> > .
> > .
> > .
> >
> > Any suggestions?  I can get to the server and the WSDL from IE and
> FireFox.
> >
> > Mike
> >
> > -- 
> > Michael Marsh
> > Consultant
> > Pantano Software
> 
> 
>