Recent

Author Topic: Indy SSL and Ubuntu 15  (Read 7050 times)

mbdev

  • New Member
  • *
  • Posts: 44
Indy SSL and Ubuntu 15
« on: September 03, 2015, 01:42:59 pm »
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

  • Hero Member
  • *****
  • Posts: 5368
Re: Indy SSL and Ubuntu 15
« Reply #1 on: September 03, 2015, 03:57:25 pm »
64 or 32 bit installation?
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

mbdev

  • New Member
  • *
  • Posts: 44
Re: Indy SSL and Ubuntu 15
« Reply #2 on: September 03, 2015, 05:30:29 pm »
Ubuntu Server 15.04 64Bit

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Indy SSL and Ubuntu 15
« Reply #3 on: September 04, 2015, 07:17:47 am »
and you build 64bit application as well?
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

mbdev

  • New Member
  • *
  • Posts: 44
Re: Indy SSL and Ubuntu 15
« Reply #4 on: September 04, 2015, 09:08:12 am »
Sure..

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Indy SSL and Ubuntu 15
« Reply #5 on: September 04, 2015, 03:53:17 pm »
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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

mbdev

  • New Member
  • *
  • Posts: 44
Re: Indy SSL and Ubuntu 15
« Reply #6 on: September 06, 2015, 10:36:37 am »
Does nobody has any clue? :o

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Indy SSL and Ubuntu 15
« Reply #7 on: September 06, 2015, 03:51:17 pm »
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/
« Last Edit: September 06, 2015, 03:54:11 pm by ChrisF »

mbdev

  • New Member
  • *
  • Posts: 44
Re: Indy SSL and Ubuntu 15
« Reply #8 on: September 07, 2015, 09:07:11 pm »
I have moved this question (thanks to ChrisF)

http://forums2.atozed.com/viewtopic.php?f=7&t=26922

 

TinyPortal © 2005-2018