Indy SSL and Ubuntu 15 lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- mbdev · 2015-09-03 11:42 Hi, I'm struggling to set up OpenSSL for Indy and it wouldn't work  I found this post with a similar problem, but it could not solve my problem http://forum.lazarus.freepascal.org/index.php?topic=10401.0 I'm using the ubuntu packages libssl1.0.0 and libssl-dev Code: [Select]apt-get install libssl1.0.0 libssl-dev Moreover I created symbolic links with the following commands Code: [Select]cd /usr/lib ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 libssl.so ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 libcrypto.so After starting my application I'm getting the error message "SSL negotiation failed". The app tries to connect to an IMAP server and this works great on Windows. The SSLIOHandlerSocketOpenSSL is set to sslvSSLv23, but I also tried different sslVSSLv versions. ---------------------------------------------------------------------- taazz · 2015-09-03 13:57 64 or 32 bit installation? ---------------------------------------------------------------------- mbdev · 2015-09-03 15:30 Ubuntu Server 15.04 64Bit ---------------------------------------------------------------------- taazz · 2015-09-04 05:17 and you build 64bit application as well? ---------------------------------------------------------------------- mbdev · 2015-09-04 07:08 Sure.. ---------------------------------------------------------------------- taazz · 2015-09-04 13:53 Well currently I'm having problems building lazarus (32bit) in my 64bit suse linux so I can't really test anything. I'm going to spend some time on it later this month when I have the need to build a linux app until then I do not see any free time to spend on it.So sorry but I can't help on this yet. ---------------------------------------------------------------------- mbdev · 2015-09-06 08:36 Does nobody has any clue? ---------------------------------------------------------------------- ChrisF · 2015-09-06 13:51 As your problem seems to be relative to the Linux OS, I'm afraid I can't really help you neither. But, just in case... 1/  Which version of Indy are you using ? Is it a recent one ? The current version is 10.6.2 rev 5301: it can be downloaded from  https://indy.fulgan.com/ (in the ZIP directory). 2/  Which version of Open SSL are you using on your Linux computer ? Is it possible that the version you've used for your tests on Windows is more recent than the one on Linux ? Do you use an old one in Linux (i.e. with known security issues) ? AFAIR, Indy "deactivates" some old versions known to be unsecured. The current versions are 1.0.0s, 1.0.1p and 1.0.2d (see http://openssl.org/), though the recent ones are still accepted by Indy anyway. BTW, have you tested that Open SSL is found and correctly loaded in Indy ? Code: [Select]uses ...,  IdSSLOpenSSL, IdSSLOpenSSLHeaders; ...   ShowMessage('Open SSL version found = ' + OpenSSLVersion + sLineBreak +               'Failed = ' + WhichFailedToLoad()); ... 3/ Finally, you can still try to post in the Indy forum and describe your problem. I guess that Remy Lebeau (the current maintainer of the Indy library) will probably be able to help you, or at least to provide you some clues. Indy forum : http://forums2.atozed.com/ ---------------------------------------------------------------------- mbdev · 2015-09-07 19:07 I have moved this question (thanks to ChrisF) http://forums2.atozed.com/viewtopic.php?f=7&t=26922