Hi, I'm testing HTTPS with fpc (
http://wiki.freepascal.org/fphttpclient) on Mac:
url := 'https://jsonplaceholder.typicode.com/posts/42';
urlrequest := TFPHTTPClient.Create(nil);
res := urlrequest.Get(url);
urlrequest.Free;
but I can't connect to the server (see error.jpg)
The server is reachable from the Mac (I can access it with Safari) and I tested the same code on Linux and Windows.
Here some extra info about my Mac and openssl:
$ uname -a
Darwin Jacks-iMac.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64
$ openssl version
OpenSSL 0.9.8zh 14 Jan 2016
$ ll /usr/lib/libssl*
-rwxr-xr-x 1 root wheel 386K Sep 14 2016 libssl.0.9.7.dylib*
-rwxr-xr-x 1 root wheel 631K Sep 14 2016 libssl.0.9.8.dylib*
-rw-r--r-- 1 root wheel 921K Sep 14 2016 libssl.35.dylib
lrwxr-xr-x 1 root wheel 18B Sep 21 2016 libssl.dylib@ -> libssl.0.9.8.dylib
$ ll /usr/lib/libcrypto*
-rwxr-xr-x 1 root wheel 1.9M Sep 14 2016 libcrypto.0.9.7.dylib*
-rwxr-xr-x 1 root wheel 2.6M Sep 14 2016 libcrypto.0.9.8.dylib*
-rw-r--r-- 1 root wheel 4.0M Sep 14 2016 libcrypto.35.dylib
lrwxr-xr-x 1 root wheel 21B Sep 21 2016 libcrypto.dylib@ -> libcrypto.0.9.8.dylib
Any help?
Thanks!