gpt4 book ai didi

php - 在 MAMP 中更改 openssl 版本

转载 作者:IT王子 更新时间:2023-10-28 23:45:51 25 4
gpt4 key购买 nike

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作为本地服务器。 php信息: 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

关于php - 在 MAMP 中更改 openssl 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33887552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com