Recent

Author Topic: How to solve synapse Error "SSL/TLS support is not compiled!"? [SOLVED]  (Read 1096 times)

Hartmut

  • Hero Member
  • *****
  • Posts: 739
I want to use synapse version 40 for sftp. During Login I get the error "SSL/TLS support is not compiled!".

Code: Pascal  [Select][+][-]
  1. var FTX: TFTPSend;
  2.     ok: boolean;
  3.  
  4. FTX:=TFTPSend.Create;
  5. FTX.TargetHost:=...
  6. FTX.TargetPort:=...
  7. FTX.Username:=...
  8. FTX.Password:=...
  9. FTX.FullSSL:=true;
  10. ok:=FTX.Login;

In reply 8 of https://forum.lazarus.freepascal.org/index.php?topic=25232.0 I found, that library "libssl-dev" should be installed. I did it, but this did not help in my case.

Are there more libraries needed? What must I do?

I'm on Linux Ubuntu 18.04 LTS 64-bit with FPC 3.2.0. Thanks in advance.
« Last Edit: August 10, 2022, 06:07:54 pm by Hartmut »

paweld

  • Hero Member
  • *****
  • Posts: 966
Best regards / Pozdrawiam
paweld

rvk

  • Hero Member
  • *****
  • Posts: 6056
Re: How to solve synapse Error "SSL/TLS support is not compiled!"?
« Reply #2 on: August 10, 2022, 01:39:26 pm »
Dus you add ssl_openssl to your uses clause?

It's also possible the openssl .so's can't be found or have wrong symlinks.
« Last Edit: August 10, 2022, 01:41:45 pm by rvk »

Hartmut

  • Hero Member
  • *****
  • Posts: 739
Re: How to solve synapse Error "SSL/TLS support is not compiled!"?
« Reply #3 on: August 10, 2022, 06:06:31 pm »
Thanks paweld for your post. Do I understand you right that you want me to switch from synapse to SimpleSFTP.pas? At this moment this is not my intention because my program is nearly finished and I "only" want to switch from ftp (which works) to sftp.


Dus you add ssl_openssl to your uses clause?

Yes, I forgot! Thank you very much rvk for your post.

Unfortunately now I get another error message. I opened another Topic for that new subject: https://forum.lazarus.freepascal.org/index.php/topic,60237.0.html

rvk

  • Hero Member
  • *****
  • Posts: 6056
Re: How to solve synapse Error "SSL/TLS support is not compiled!"?
« Reply #4 on: August 10, 2022, 06:42:11 pm »
Do I understand you right that you want me to switch from synapse to SimpleSFTP.pas?
FYI. SimpleSFTP.pas uses synapse. So it's not a matter of switching.
It's just that SimpleSFTP is a working version of a SFTP client.

BTW. You can't use TFTPSend to do SFTP. In no way !!!
Or do you want FTPS.
Because FTPS is very different from SFTP.

FTPS uses  SSL (TLS) for a secure FTP connection. You can use TFTPSend for that (in the way you are trying).
But SFTP is FTP over a SSH connection. Very very different and you can't just do it with TFTPSend (you'll also need libssh2 library).

So which is it you want? FTPS of SFTP?

Hartmut

  • Hero Member
  • *****
  • Posts: 739
Re: How to solve synapse Error "SSL/TLS support is not compiled!"? [SOLVED]
« Reply #5 on: August 10, 2022, 07:20:43 pm »
Thanks a lot rvk for your well-founded answer. I was not aware of this difference and that TFTPSend can't be used for SFTP. The server I want to use was set up by a friend who is not a great expert (like me). I must ask him, whether he implemented sftp or ftps, but currently I cannot get him. I will write the answer when I have them.

But please let us stop writing in this closed Topic and use the new one in https://forum.lazarus.freepascal.org/index.php/topic,60237.0.html Thanks.

 

TinyPortal © 2005-2018