As far as I know , openssl 0.9.8 does not work with the tls 1.2 protocol:

 user@computer: /usr/bin/openssl version OpenSSL 0.9.8zg 14 July 2015 user@computer: /usr/bin/openssl s_client -connect somesite.com:8443 CONNECTED(00000003) write:errno=54 

8443 port just works on tls 1.2 .

But at the same time openssl 1.0.2 with the protocol described above works:

 user@computer: openssl version OpenSSL 1.0.2d 9 Jul 2015 user@computer: openssl s_client -connect somesite.com:8443 CONNECTED(00000003) depth=2 C = US, O = "blah-blah" ... .... 

As server I use MAMP . phpinfo says that enter image description here

Tell MAMP how to change the version of openssl in MAMP ?

    0