在 MAMP 中更改 openssl 版本
Change openssl version in MAMP
openssl 0.9.8
doesn't work 与 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
但是 openssl 1.0.2
正在使用它:
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" ...
....
我正在使用 MAMP 作为本地服务器。 phpinfo
:
如何在 MAMP
中更改 openssl
版本?
我知道,这个问题是 duplicate,但我真的需要帮助。
我已经向开发人员提出了这个问题MAMP & MAMP PRO
。他们是这样说的:
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 来自评论(感谢@lukemh):
PHP CURL fails on Cloudflare or SSLv3 sites using MAMP 3.5 due to old OpenSSL version
我重新编译了libcurl MAMP正在使用。它现在对我有用:)
所以,让我们执行以下操作:
- 运行
/Applications/MAMP/Library/bin/curl-config --version
查看你的版本
- 转到
http://curl.haxx.se/download/
并下载正确的版本
- 配置为
./configure --prefix=/Applications/MAMP/Library/
make && make install
来源:http://dev.soup.io/post/56438473/If-youre-using-MAMP-and-doing-something
截至 2016 年 7 月 21 日,MAMP PRO 4 有预发布版本,其中包含 OpenSSL 1.0.2,请在此处获取预发布版本:
如果您希望继续使用 MAMP 版本 3,您还可以执行以下操作以使其正常工作:
- 将您当前的 MAMP 版本重命名为 MAMPv3
- 下载 MAMP 版本 4,下载后将其重命名为 MAMPv4
- 将 MAMPv3 重命名回普通的旧 MAMP
- 返回 MAMPv4 并进入 "Library" 目录并复制其中名为 "OpenSSL"
的文件夹
- 将此文件夹移动到旧版本的 MAMP 并重新启动服务器。对我有用!
openssl 0.9.8
doesn't work 与 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
但是 openssl 1.0.2
正在使用它:
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" ...
....
我正在使用 MAMP 作为本地服务器。 phpinfo
:
如何在 MAMP
中更改 openssl
版本?
我知道,这个问题是 duplicate,但我真的需要帮助。
我已经向开发人员提出了这个问题MAMP & MAMP PRO
。他们是这样说的:
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 来自评论(感谢@lukemh):
PHP CURL fails on Cloudflare or SSLv3 sites using MAMP 3.5 due to old OpenSSL version
我重新编译了libcurl MAMP正在使用。它现在对我有用:)
所以,让我们执行以下操作:
- 运行
/Applications/MAMP/Library/bin/curl-config --version
查看你的版本 - 转到
http://curl.haxx.se/download/
并下载正确的版本 - 配置为
./configure --prefix=/Applications/MAMP/Library/
make && make install
来源:http://dev.soup.io/post/56438473/If-youre-using-MAMP-and-doing-something
截至 2016 年 7 月 21 日,MAMP PRO 4 有预发布版本,其中包含 OpenSSL 1.0.2,请在此处获取预发布版本:
如果您希望继续使用 MAMP 版本 3,您还可以执行以下操作以使其正常工作:
- 将您当前的 MAMP 版本重命名为 MAMPv3
- 下载 MAMP 版本 4,下载后将其重命名为 MAMPv4
- 将 MAMPv3 重命名回普通的旧 MAMP
- 返回 MAMPv4 并进入 "Library" 目录并复制其中名为 "OpenSSL" 的文件夹
- 将此文件夹移动到旧版本的 MAMP 并重新启动服务器。对我有用!