Home > indy error > indy error connecting with ssl

Indy Error Connecting With Ssl

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 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 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.Va

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 them; it only takes a minute: Sign up EIdOSSLConnectError Error connecting with SSL - EOF was observed up vote 0 down http://stackoverflow.com/questions/1422586/delphi-6-and-indy-ssl-connection-not-working vote favorite My platform is this OS X Yosemite 10.10.5 newest Indy (10.6.2.0, download 2016 March 13 - Indy10_5346.zip) Lazarus 1.4.4 Concerning OpenSSL versions I have tried: HomeBrew OpenSSL installed like this: "brew install openssl --universal" Built-in (0.9.8) OS X supplied in /usr/lib/ I am getting error: EIdOSSLConnecError Error connecting with SSL - EOF was observed that violates the protocol In file Protocols/IdSSLOpenSSLHeaders.pas at line 19418 However, as I am http://stackoverflow.com/questions/35987485/eidosslconnecterror-error-connecting-with-ssl-eof-was-observed using newest of everything - why am I be getting this error? (Happens in call to OpenEncodedConnection) Here's how I setup my Indy HTTP client OpenSSL handler: FIOHandlerOpenSSL := TIdSSLIOHandlerSocketOpenSSL.Create; FIOHandlerOpenSSL.SSLOptions.SSLVersions := [sslvSSLv23,sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2] FIOHandlerOpenSSL.Mode := sslmClient; FIOHandlerOpenSSL.VerifyMode := []; FIOHandlerOpenSSL.VerifyDepth := 0; osx delphi openssl indy lazarus share|improve this question edited Mar 14 at 17:46 asked Mar 14 at 12:23 Tom 55612467 Have a look at the answer Remy Lebeau gave here - forums.embarcadero.com/message.jspa?messageID=682440 –RBA Mar 14 at 12:55 Will try (thanks!) I will also post some more code –Tom Mar 14 at 13:16 No luck so far... I believe I use all the recommended settings now –Tom Mar 14 at 14:09 1 FIOHandlerOpenSSL.SSLOptions.SSLVersions[sslvSSLv23,sslvTLSv‌1,sslvTLSv1_1,sslvTL‌Sv1_2] is not valid code syntax. You need the := operator. And do not specify sslvSSLv23: FIOHandlerOpenSSL.SSLOptions.SSLVersions := [sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2] –Remy Lebeau Mar 14 at 15:46 1 SSLv23 is a wildcard in the OpenSSL API, it is not an actual protocol version sent over the wire. It is a mechanism that encompasses the other versions and provides version negotiation over the wire. If a server is not using SSLv23 on its end, it cannot negotiate versions with clients. The client needs to match its SSLVersions setup to ma

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 https://www.experts-exchange.com/questions/23268455/Error-connecting-with-SSL-Indy-9.html Real-Time Help Create 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 indy error 9) Posted on 2008-03-25 Delphi 1 Verified Solution 5 Comments 6,665 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 indy error connecting post the file, I'm getting this error: error connecting 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 Author Comment by:Buropro-Citation2008-03-25 The error is a EidOSSLconnectError exception, the exact error messag

 

Related content

indy error

Indy Error p p p here for a quick overview of the site Help Center Detailed answers to relatedl 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 million programmers just like you helping each other Join them a href http www indyproject org kb wherecanifindsocketerror htm http www indyproject org kb

indy error 11004

Indy Error p 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 a Freelance Project Hire for a relatedl 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 socket error Want to Advertise Here Solved socket error Posted on - - Delphi Verified Solution Comments Views Last Modified - - When I put my URL string in to the

indy error accepting connection with ssl

Indy Error Accepting Connection With Ssl p here for a quick overview of the site Help Center Detailed relatedl 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 million programmers just like you helping each other Join them it only takes a minute Sign up IdHttpServerexception Error accepting connection with