Article View: borland.public.cppbuilder.internet.socket
Article #5131Indy SSL problems
From: Alfred Thoomas
Date: Fri, 08 Oct 2004 11:57
Date: Fri, 08 Oct 2004 11:57
29 lines
2179 bytes
2179 bytes
Hi I am using code that used to work to send data to a webserver using Indy's IdHTTP and TIdSSLIOHandlerSocket. The problem is that now I get the exception "Error connecting with SSL" when doing a post. Here uis some of the code: pHTTP = new TIdHTTP(NULL); pSSLIO = new TIdSSLIOHandlerSocket(NULL); StrmRequest = new TMemoryStream(); StrmResponse = new TMemoryStream(); pHTTP->Request->Connection = "keep-alive"; pHTTP->Port = ReadRegData->NaTISPort; pHTTP->ReadTimeout = 30; pSSLIO->SSLOptions->RootCertFile = ReadRegData->RootCertificate; pSSLIO->SSLOptions->CertFile = ReadRegData->ClientCertificate; pSSLIO->SSLOptions->KeyFile = ReadRegData->KeyCertificate; pSSLIO->SSLOptions->Method = sslvSSLv3; pSSLIO->SSLOptions->Mode = sslmBoth; pSSLIO->SSLOptions->VerifyDepth = 1; pSSLIO->SSLOptions->VerifyMode << sslvrfPeer << sslvrfFailIfNoPeerCert << sslvrfClientOnce; pSSLIO->OnGetPassword = GetSSLPassword; pHTTP->IOHandler = pSSLIO; pHTTP->Post(ReadRegData->NaTISURL + "/X0000", StrmRequest, StrmResponse); Any ideas where I can look?? Regards Alfred
Technical Details
Message-ID:
<41668090$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6c6b112ce71c9f2d,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Alfred Thoomas" <alfred@fischerint.co.za> Sender: "Alfred Thoomas" <alfred@fischerint.co.za> Reply-To: "Alfred Thoomas" <alfred@fischerint.co.za> Subject: Indy SSL problems Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 196.25.217.126 X-Forwarded-For: 192.96.150.202 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41668090$1@newsgroups.borland.com> Date: 8 Oct 2004 04:57:04 -0700 X-Trace: newsgroups.borland.com 1097236624 207.105.83.66 (8 Oct 2004 04:57:04 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail