Error Connecting With Ssl Delphi
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 eidosslconnecterror error connecting with ssl Stack Overflow the company Business Learn more about hiring developers or posting ads with error connecting to ssl npc us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a
1408f10b:ssl Routines:ssl3_get_record:wrong Version Number
community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why do I get “wrong version error” when I add SSl to the Indy Zip
Ssl "wrong Version Number"
Code Lookup example in Delphi 2010? up vote 1 down vote favorite I thought I would try something simple to try to understand Web client/server applications since I know nothing about it but I need to learn. I downloaded the "Zip Code look up" example from the web (both client and server). Compiled them and everything worked as advertised. Then I dropped an SSL IO Handler on each form and specified them as the handlers with "sslvTLSv1" selected in both. Now it doesn't work. Every time I try to look up zip codes in the client app, I get, "error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number." I uninstalled the original Indy library and installed the latest version (10.6.2.5264). Just to be sure, I got the most recent SSL libraries and put them in both program folders. I have looked at numerous questions and answers about SSL in Indy and it seems like it should work. What am I missing? This is the relevant section from the Server DFM: object IdTCPServer1: TIdTCPServer Active = True Bindings = < item IP = '127.0.0.1' Port = 6000 end> DefaultPort = 6000 IOHandler = Handler OnConnect = IdTCPServer1Connect OnExecute = IdTCPServer1Execute Left = 32 Top = 24 end object Handler: TIdServerIOHandlerSSLOpenSSL SSLOptions.Mode = sslmServer SSLOptions.VerifyMode = [] SSLOptions.VerifyDepth = 0 Left = 100 Top = 32 end And this is the relevant section of the Client DFM. object Client: TIdTCPClient IOHandler = Handler ConnectTimeout = 0 Host = '127.0.0.1' IPVersion = Id_IPv4 Port = 6000 ReadTimeout = -1 Left = 209 Top = 16 end object Handler: TIdSSLIOHandlerSocketOpenSSL Destination = '127.0.0.1:6000' Host = '127.0.0.1' MaxLineAction = maException Port = 6000 DefaultPort = 0 SSLOptions.Mode = sslmClient SSLO
with default properties. I also have libeay32.dll and ssleay32.dll in application directory. It works for some other URLs... With this one i have the error message when i am trying .Get()... Any ideas? Thanx, Eugene. Remy Lebeau (TeamB) Delphi Developer 2006-03-24 02:40:30 AM Re:"Error connecting with SSL" "Eugene V. Goldberg"
question is answered. Reply to this Thread Search Forum Back to Thread https://forums.embarcadero.com/message.jspa?messageID=664946 List Replies: 4 - Last Post: Jul 15, 2014 http://www.activedelphi.com.br/forum/viewtopic.php?t=48971&sid=1693c9c73c30935d193aa2e7b5a3689a 1:59 PM Last Post By: Eugenio Bourlot Eugenio Bourlot Posts: 6 Registered: 7/24/14 IdCmdTCPServer with SSL - Error connecting with SSL Reply Posted: Jul 2, 2014 6:28 AM indy , ssl Hello I'm trying error connecting to connect a TIdTCPClient (developed with Delphi6) vs a TIdCmdTCPServer (developed with Delphi XE6) throw SSL. I get error "Error connecting with SSL" on TIdTCPClient.Connect. I have OpenSSL libraries on both sides. Server code (Delphi XE6) FTCPServer := TIdCmdTCPServer.Create(nil); FTCPServer.DefaultPort := FConf.port; FTCPServer.OnConnect := TCPServerConnect; error connecting with FTCPServer.OnDisconnect := TCPServerDisconnect; FTCPServer.OnException := TCPServerException; FTCPServer.IOHandler := TIdServerIOHandlerSSLOpenSSL.Create(nil); with TIdServerIOHandlerSSLOpenSSL(FTCPServer.IOHandler) do begin OnGetPassword := ServerIOHandlerGetPassword; with SSLOptions do begin CertFile := 'galbop01.cf'; RootCertFile:= 'galbop01.cf'; KeyFile := 'galbopca.key'; Method := sslvSSLv23; Mode := sslmServer; VerifyDepth := 2; end; end; FTCPServer.Active := True; Client code (Delphi 6) FTCPClient := TIdTCPClient.Create(nil); FIOHandler := TIdSSLIOHandlerSocket.Create(nil); with FIOHandler.SSLOptions do begin CertFile :='galbop01.cf'; Method :=sslvSSLv23; Mode :=sslmClient; VerifyDepth :=2; end; with FTCPClient do begin Host := fHost; Port := fPort; IOHandler := FIOHandler; MaxLineAction:=maSplit; MaxLineLength:=2097152; SendBufferSize:=1024; ReadTimeout:=30000; Connect(); //Here a get Error connecting with SSL end; Any suggest? Remy Lebeau (Te... Posts: 6,644 Registered: 12/23/01 Re: IdCmdTCPServer with SSL - Error connecting with SSL Correct Reply Posted: Jul 2, 2014 12:05 PM in response to: Eugenio B
Exibir próxima mensagem Autor Mensagem WDRochaNovatoRegistrado: Sexta-Feira, 25 de Julho de 2008Mensagens: 95Localização: Manaus - Am Enviada: Ter Jul 07, 2009 11:37 am Assunto: Error Connecting With SSL Bom dia pessoal, estou desenvolvendo uma aplicação e nela uma funcionalidade para enviar emails. eu usei como base este tuto.. http://www.devmedia.com.br/articles/viewcomp.asp?comp=9107 mas ele só envia se eu estiver usando a conta do gmail.. mas tbm queria enviar usando a conta do yahoo.. Usando a conta do gmail ele envia normalmente, mas se mudar para a conta do yahoo...acontece o seguinte erro Error Connecting With SSL já baixei várias versões openSSL e o erro continua.. alguém já passou por isso. obrigado._________________Williame Rocha Voltar ao Topo rogerbettiColaboradorRegistrado: Quarta-Feira, 2 de Fevereiro de 2005Mensagens: 1366Localização: São Paulo/SP Enviada: Ter Jul 07, 2009 2:18 pm Assunto: usa o componente IdSSLHandler da paleta indy, e tem que setar as propriedades de acordo com o ssl do yahoo Voltar ao Topo WDRochaNovatoRegistrado: Sexta-Feira, 25 de Julho de 2008Mensagens: 95Localização: Manaus - Am Enviada: Ter Jul 07, 2009 2:34 pm Assunto: obrigado pela resposta.... eu estou usando sim...já está ligado ao IdSMTP. Eu já tentei pela porta 587, 465 e 25, com e sem autenticação... vc teria algum exemplo q funcionasse para o yahoo???_________________Williame Rocha Voltar ao Topo flexsystemsAprendizRegistrado: Segunda-Feira, 2 de Abril de 2007Mensagens: 234Localização: Caxias do Sul Enviada: Ter Ago 04, 2009 2:26 am Assunto: Olá a todos, estou utilizando Indy 10.2.3 + BDS2007 e estou tendo os mesmos problemas... alguem achou alguma solução???_________________Edvilson V. G. Chaves - Pesquise bem antes de postar. - Qdo postar pense muito bem onde seria o melhor resultado. e-mail: suporte@flexvendasweb.com.br Site: www.flexvendasweb.com.br Voltar ao Topo WDRochaNovatoRegistrado: Sexta-Feira, 25 de Julho de 2008Mens