【发布时间】:2016-02-26 12:48:43
【问题描述】:
openssl 0.9.8doesn'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,但我真的需要帮助。
【问题讨论】:
-
我不使用 mac、mamp 和所有这些东西,但如果您需要 openssl 1.0,请考虑停止使用 mamp,即使对于当前的 PHP 版本,它们仍然提供 0.9。例如,用于 Windows 的 PHP 5.5+ 与 openssl 1.0 一起提供。我相信您可以从其他来源安装 PHP 或将开发环境安装到虚拟机。作为一名 PHP 开发人员,您应该能够从头开始安装基本的开发环境。
-
您找到解决方案了吗?如果是的话,你能和我分享一下吗?我也需要使用 tls 1.2(因为 ios 9)...
-
@LoryLory,不,我没有。
-
好的...对不起。如果您还不知道,我可以建议您使用最新版本的 AMPPS,它具有 apache 2.4 和升级版本的 openssl ...请参阅我的帖子:apple.stackexchange.com/questions/206901/…
-
@LoryLory,哦!谢谢!