Search code examples
phpopensslmamp

Change openssl version in MAMP


openssl 0.9.8 doesn't work with tls 1.2:

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

But openssl 1.0.2 are working with it:

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" ...
....

I'm using MAMP as a local server. phpinfo: phpinfo

How change openssl version in MAMP? I know, that this question is duplicate, but I really need help.


Solution

  • I have asked this question to developers MAMP & MAMP PRO. Here's what they said:

    MAMP (PRO) 3.x does NOT bundle OpenSSL software but uses what comes bundled with Mac OS. If you update OpenSSL in Mac OS, MAMP (PRO) should automatically use the updated version. We will be including the latest OpenSSL in our future MAMP 4 release, which will be available soon. This will be a paid update.


    UPD From comments (thanks to @lukemh):

    PHP CURL fails on Cloudflare or SSLv3 sites using MAMP 3.5 due to old OpenSSL version