Error Connecting With Ssl Indy
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 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 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 53212366 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,sslvTLSv1,sslvTLSv1_1,sslvTLSv1_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 SSLVers
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 http://stackoverflow.com/questions/35987485/eidosslconnecterror-error-connecting-with-ssl-eof-was-observed other. Join them; it only takes a minute: Sign up Delphi Indy verify server certificate SSL up vote 5 down vote favorite 3 I have scoured the internet and haven't found a solution or method on how to verify the certificate when connecting over HTTPS using TIdHTTP. I have hooked up a IdSSLIOHandlerSocketOpenSSL component as the IOHandler, set http://stackoverflow.com/questions/13577706/delphi-indy-verify-server-certificate-ssl the SSLModes, etc. but when I browse to https://s3.amazonaws.com it cannot verify the certificate. OpenSSL (Indy) gives "Error connecting with SSL. SSL3_GET_SERVER_CERTIFICATE: Certificate verify failed" The OpenSSL libraries have successfully loaded (checked with WhichFailedToLoad). The OnStatusInfo event writes the following: SSL status: "before/connect initialization" SSL status: "before/connect initialization" SSL status: "SSLv2/v3 write client hello A" SSL status: "SSLv3 read server hello A" SSL status: "SSLv3 read server certificate B" SSL status: "SSLv3 read server certificate B" SSL status: "SSLv3 read server certificate B" And OnVerifyPeer, AOk = False. How can I get it to verify correctly. What's going on? Thanks for reading, Adrian delphi ssl indy share|improve this question asked Nov 27 '12 at 5:05 Adrian 102215 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted You have to implement a event handler for the OnVerifyPeer event of your TIdSSLIOHandlerSocketOpenSSL component. From IdSSLOpenSSL.pas: Note that you really should always implement OnVerifyPeer, otherwise the certificate of the peer you are connecting to is NOT checked to ensur
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen