Error Connecting With Ssl Delphi 7
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us
Delphi Indy Error Connecting With Ssl
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community error connecting with ssl indy 9 Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Delphi 7
Delphi 7 Indy 9 Error Connecting With Ssl
/ Indy 9 app not connecting to Apache via SSL up vote 0 down vote favorite We have an app built in Delphi 7 using Indy 9 for https connections to a php back end running on PHP, on Linux. The app eidosslconnecterror error connecting with ssl connects to our current production server without a problem. We have been building a test environment for this application in house, and on the test web server, it refuses to connect using https. The app HAS been able to connect to this server using http. I can connect any current browser using the same web calls the app makes (haven't tried older browsers), and I get the connection, and the data returs perfectly, so apparently a there's something in Indy 9 holding this up from working error connecting to ssl npc (which is why this question is here and not on ServerFault) Does anyone have enough experience with Indy / SSL to know what's happening here? Here are the few differences I thought might have some input: 1. I was initially starting with a wildcard cert. It is valid, and on the correct domain. It works with everything else we have on lots of servers. 2. Thinking it was possible that wildcard certs are a newer thing than Indy 9, I removed the wildcard cert, and put in a self signed cert, with the full machine name. It failed in the same way. BUT, as you know, browsers issue a cert exception with these self signed certs, so I was unsure if this would ALSO give Indy problems. 3. I'm sure the version of OpenSSH on our new development server is newer than the one that is currently on our production server. I can dig out these exact versions if someone thinks it will help. This is an app I inherited, so my knowledge of SSL and Indy is limited. This app is at the end of it's life, so upgrading to Indy 10 is not something my company is going to fund. Any help or pointers or hints are extremely welcome, and my thanks would be infinite. Thank you so much Stackers! apache delphi ssl openssl indy share|improve this question asked Mar 28 '12 at 15:32 GoinAum 451413 Did you set some breakpoints or put some OutputDebugString or CodeSite log messages
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join http://stackoverflow.com/questions/9910880/delphi-7-indy-9-app-not-connecting-to-apache-via-ssl them; it only takes a minute: Sign up Delphi 6 and Indy SSL connection not working up vote 1 down vote favorite 1 I need to consume a Web Service via SSL. In order to accomplish that I have built a web client in Delphi 6 that uses Indy to read the client certificates and write the soap request http://stackoverflow.com/questions/1422586/delphi-6-and-indy-ssl-connection-not-working via https. The compilated version of the code is a DLL that runs in IIS 5.0. After tested the code in my local machine it works fine (I'm behind a proxy). But after the code is deployed to prod servers (not proxy) the SSL connection fails saying "Error connecting with SSL". Here is my code: var Response: TStringStream; IdHttp: TIdHTTP; IdCnxSLL: TIdConnectionInterceptOpenSSL; XmlSoapDoc: IXMLDocument; begin Response := TStringStream.Create(''); IdHttp := TIdHTTP.Create(nil); IdCnxSLL := TIdConnectionInterceptOpenSSL.Create(nil); XmlSoapDoc := TXMLDocument.Create(nil); with IdCnxSLL do begin IdCnxSLL.SSLOptions.Method := sslvSSLv23; IdCnxSLL.SSLOptions.RootCertFile := IniHttpConnectionData.Values['RootCertFile']; IdCnxSLL.SSLOptions.CertFile := IniHttpConnectionData.Values['CertFile']; IdCnxSLL.SSLOptions.KeyFile := IniHttpConnectionData.Values['KeyFile']; IdCnxSLL.OnGetPassword := IdConInterceptOpenSSLGetPassword; end; with IdHttp do begin if bUseProxy then begin Request.ProxyServer := IniHttpConnectionData.Values['ProxyServer']; Request.ProxyPort := StrToIntDef(IniHttpConnectionData.Values['ProxyPort'], 0); end else begin Host := IniHttpConnectionData.Values['HTTPHost']; Port := StrToIntDef(IniHttpConnectionData.Values['HTTPPort'], 443); end; Request.ContentType := 'text/xml'; Intercept := IdCnxSLL; InterceptEnabled := True; end; try IdHttp.Post(ServiceURL, SoapEnv, Response); except on E:EIdOSSLConnectError do LogError('SSL Connect Error: ' + E.Message); on E:Exception do LogError('Error' + E.ClassName + ' - ' + E.Message); end; I also try this code compiling into an exe program and it works. Is there somethin
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create https://www.experts-exchange.com/questions/23268455/Error-connecting-with-SSL-Indy-9.html a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Error connecting with SSL (Indy 9) Want to Advertise Here? Solved Error connecting with SSL (Indy 9) Posted on 2008-03-25 Delphi 1 error connecting Verified Solution 5 Comments 6,645 Views Last Modified: 2008-07-23 Hi everyone, I'm a delphi 5 programmer and I'm using indy 9 to send a SOAP file, this is pretty new to me but I was able to create a idhtttp object and connect to the right url but when I post the file, I'm getting this error: error connecting error connecting with with SSL I have tried downloading libeay32.dll and ssleay32.dll but still, this error shows up, these are made for indy 9 but I can't really know if they are the right version exactly. Any suggestions on what I should do? 0 Question by:Buropro-Citation Facebook Twitter LinkedIn Google LVL 28 Best Solution byciuly I know they are not sending soap. what they are sending is irrelevant. http is the same for everybody. you send something. you get something. the idea is that you look at thos eprojects to see how Go to Solution 5 Comments LVL 28 Overall: Level 28 Delphi 25 Message Expert Comment by:ciuly2008-03-25 what is the exact error? did you set up ssl correctly? make sure the ssl version is set up correctly as well. you can take a peek at some of my ssl indy examples here: http://www.ciuly.com/delphi/indy/ 0 Message Active 5 days ago Author Comment by:Buropro-Citation2008-03-25 The error is a EidOSSLconnectError exception, the exact error message is 'error connecting with SSL', not much detail in there unfortunatly. I haven't