尽管禁用了“强制安全检出",但woocommerce中出现SSL连接错误 [英] SSL connect error in woocommerce though 'Force secure checkout' is disabled

查看:110
本文介绍了尽管禁用了“强制安全检出",但woocommerce中出现SSL连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发环境中使用Paypal沙箱模式使用woocommerce 2.3.13.由于尚未通过SSL认证,因此Checkout > 'Force secure checkout'下的该功能现已被禁用.

I'm using woocommerce 2.3.13 on my development environment with paypal sandbox mode. as its not yet SSL certified so under Checkout > 'Force secure checkout' is disabled now.

但是在结帐页面上,尝试连接到Paypal沙箱时,它仍然显示"SSL连接错误".

but on checkout page its still showing "SSL connect error" while trying to connect to paypal sandbox.

有人遇到同样的问题吗?

Is anyone face the same issue?

谢谢您的帮助.

推荐答案

Paypal最近在沙盒上推出了一些安全更新(产品将于6月更新)

Paypal have recently rolled out some security updates on the sandbox (production will be updated in June) https://devblog.paypal.com/upcoming-security-changes-notice/

最重要的是,沙盒不再接受TLS 1.0和1.1,因此您需要通过强制curl选项来确保正在使用TLS 1.2,例如:

Most importantly, TLS 1.0 and 1.1 are no longer accepted by the sandbox, so you'll need to make sure that TLS 1.2 is being used by forcing the curl option, e.g:

$curl->setOption(CURLOPT_SSLVERSION,6);

您需要OpenSSL 1.0.1+才能正常工作.您可以等待woocommerce自己发布补丁,或者尝试更新到PHP 5.5.19+和(lib)curl 7.34+,以便通用加密算法"握手可以找到TLS 1.2并自动使用它,但我还没有还没有测试过.

You'll need OpenSSL 1.0.1+ for this to work. You can wait for woocommerce to release a patch themselves, or perhaps try updating to PHP 5.5.19+ and (lib)curl 7.34+ so that the "common encryption algorithm" handshake can find TLS 1.2 and use it automatically, but I haven't tested that yet.

这篇关于尽管禁用了“强制安全检出",但woocommerce中出现SSL连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆