Re: .NET App cannot connect to Apache SSL server

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 07/27/04

  • Next message: Mike: "Re: .NET App cannot connect to Apache SSL server"
    Date: Tue, 27 Jul 2004 15:28:06 -0500
    
    

    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


  • Next message: Mike: "Re: .NET App cannot connect to Apache SSL server"