dongzhan0624 2015-11-24 07:18 采纳率: 0%
浏览 537

在MAMP中更改openssl版本

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.

  • 写回答

3条回答 默认 最新

  • drtiwd06558 2016-03-28 22:28
    关注

    I recompiled libcurl MAMP is using. It works for me now :)

    So, let's do the following:

    1. Run /Applications/MAMP/Library/bin/curl-config --version to see which version you've got
    2. Go to http://curl.haxx.se/download/ and download the right version
    3. Configure it with ./configure --prefix=/Applications/MAMP/Library/
    4. make && make install

    Source: http://dev.soup.io/post/56438473/If-youre-using-MAMP-and-doing-something

    评论

报告相同问题?