limelect 48 Posted January 30 (edited) I cannot communicate with my SSL site I cannot communicate to any HTTPS:// What am I doing wrong? function GetUpDate(Link: string): string; var S: string; IdHTTP: TIdHTTP; SSL: TIdSSLIOHandlerSocketOpenSSL; begin IdHTTP := TIdHTTP.Create(form1); try SSL := TIdSSLIOHandlerSocketOpenSSL.Create(IdHTTP); with SSL.SSLOptions do begin Method := sslvTLSv1_1; <<<< I tried them all Mode := sslmBoth; SSLVersions := [sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2]; end; IdHTTP.IO.Handler := SSL; // S := IdHTTP.Get(Link); S := IdHTTP.Get('https://limelect.com/UpDate/document-projects.txt'); result := S; except result := ''; ShowMessage('Could not get VERSION information from the INTERNET'); end; IdHTTP.Free; SSL.Free; end; I do not want to use any DLL plz. Edited January 30 by limelect Share this post Link to post
esegece 47 Posted January 30 (edited) Hello, Just tested on Delphi 12 and works well here, maybe the openssl libraries are not the latest supported by Indy? you can download from: https://github.com/IndySockets/OpenSSL-Binaries You can download your project compiled from: https://www.esegece.com/download/samples/idhttp.zip Kind Regards, Sergio Edited January 30 by esegece Share this post Link to post
limelect 48 Posted January 30 (edited) D10.2.3 Indy 10 AND NO DLL Edited January 30 by limelect Share this post Link to post
esegece 47 Posted January 30 4 minutes ago, limelect said: D10.2.3 Indy 10 AND NO DLL On Delphi 10.2 works well too. Indy requires the openSSL libraries for SSL/TLS connections. Share this post Link to post
limelect 48 Posted January 30 (edited) I know there is a way without DLL. Am I wrong? Any suggestion? Edited January 30 by limelect Share this post Link to post
esegece 47 Posted January 30 You can use SChannel instead of openSSL, check the following github project: https://github.com/tothpaul/Delphi/tree/master/Indy.SChannel Share this post Link to post
PeaShooter_OMO 11 Posted January 30 (edited) 4 minutes ago, limelect said: I know there is a way without DLL. Am I wrong? I have not heard of a way without them. I might be wrong though 4 minutes ago, limelect said: Any suggestion? Just place the DLLs with your executable Edited January 30 by PeaShooter_OMO Share this post Link to post
PeaShooter_OMO 11 Posted January 30 (edited) 38 minutes ago, limelect said: Method := sslvTLSv1_1; <<<< I tried them all Mode := sslmBoth; SSLVersions := [sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2]; You don't need to set Method. Just use SSLVersions SSLVersions sets Method automatically so you setting Method is not required at all. Edited January 30 by PeaShooter_OMO Share this post Link to post
limelect 48 Posted January 30 (edited) Tried that too allready Tried all out of frustration Edited January 30 by limelect Share this post Link to post
limelect 48 Posted January 30 (edited) 15 minutes ago, esegece said: You can use SChannel instead of openSSL, check the following github project: https://github.com/tothpaul/Delphi/tree/master/Indy.SChannel Thanks a lot this did it Great NO DLL Edited January 30 by limelect Share this post Link to post
Kas Ob. 121 Posted January 30 25 minutes ago, limelect said: I know there is a way without DLL. Am I wrong? Any suggestion? https://www.yunqa.de/delphi/products/openssl/index remove the need to OpenSSL altogether if the need is only for secure connection https://www.devart.com/sbridge/ great price, full source, decent performance and extensive documentation with DevArt support engine, from https://www.devart.com/sbridge/editions.html also with full SSH support ! https://www.streamsec.com/index.php?id=orderstrsecii v2.3 is old but still working last time i used it https://www.streamsec.com/index.php?id=orderstrseciv v4 is more expensive, never used it Share this post Link to post
PeaShooter_OMO 11 Posted January 30 I am not sure why is there a rquirement to not have an accompanying DLL. Please will you explain. Share this post Link to post
limelect 48 Posted January 30 Thanks, everybody I incorporated Indy.SChannel into my software and it works great And why not dll because what for if there is an option without them? I like to make my software without dll as much as possible. 1 Share this post Link to post
Remy Lebeau 1421 Posted January 30 8 hours ago, Kas Ob. said: https://www.yunqa.de/delphi/products/openssl/index https://github.com/IndySockets/Indy/issues/410 Share this post Link to post