[SOLVED] Linux, Synapse and SSL - How to distribute an application? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Hansaplast · 2018-09-19 13:51 I'm developing an application on a Mac, and would like to give Windows and Linux users access to this as well. Under Linux (GTK2), I'm using Synapse (r209 - trunk) and OpenSSL to retrieve certain JSON files by using https:// etc. From a previous (old) post I found that I need to install the "libssl- dev package" with apt-get to get this working and to avoid the dreaded "SSL/TLS support is not compiled" message. After that, in the dev environment, this works great - just not on a clean Linux setup (with regular OpenSSL installed - not the dev files). Now, how do I distribute an application like this? The plan/idea is to just have a user download an archive from a website. I'm not a Linux user, so I'm not sure if users are used to installing libssl-dev manually or if it is even needed. I understand that just copying libssl.so and libcrypto.so won't do any good either since Linux would ignore them anyway. Note that on the fresh (Ubuntu based) Linux distro, LibSSL (libssl3.so?) is installed, but I cannot seem to find libcrypto.so and am wondering if libssl.so and libssl3.so can be used mixed. Attempting to make sure OpenSSL is installed I did: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ sudo apt- get install opensslReading package lists... DoneBuilding dependency tree       Reading state information... Doneopenssl is already the newest version (1.1.0g-2ubuntu4.1).0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. What is the "usual" procedure (aside from making a package with dependencies etc)? Or what am I doing wrong? ---------------------------------------------------------------------- Thaddy · 2018-09-19 14:10 On Linux openssl is likely to  be installed. Otherwisr you can link statically. ---------------------------------------------------------------------- Hansaplast · 2018-09-19 14:20 OpenSSL is on my test (VM) machine installed, but it doesn't work (getting the "SSL/TLS support is not compiled" message). How do I link statically? ---------------------------------------------------------------------- BeniBela · 2018-09-19 20:10 You can change the searched file names: https://sourceforge.net/p/synalist/feature-requests/19/ ---------------------------------------------------------------------- Hansaplast · 2018-10-01 13:59 Seems some distro's do not include libcrypto ... I guess for those users an apt-get is the only fix: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i sudo apt- get install libssl-dev ---------------------------------------------------------------------- Hansaplast · 2018-10-01 14:37 For those interested, this is a way to detect if the libs are there or not with Synapse (open to suggestions if this can be done better - I'm not a fan of comparing strings); Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses ... ssl_openssl, httpsend, blcksock, synautil ...;...var  aHTTP: THTTPSend;begin...  aHTTP:=THTTPSend.Create;  if aHTTP.Sock.SSL.LibName='ssl_none' then    begin      // no SSL available, loading libs failed    end;... Maybe it's useful to someone looking at the same problem ...