SSL connect error in woocommerce though 'Force secure checkout' is disabled

戏子无情 提交于 2019-12-11 12:25:48

问题


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.

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

Is anyone face the same issue?

Thanks for help in advance.


回答1:


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/

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);

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.



来源:https://stackoverflow.com/questions/35069397/ssl-connect-error-in-woocommerce-though-force-secure-checkout-is-disabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!