35-Unknown SSL protocol error
This is a problem creating a secure connection from your server to the cardinal server.
1. There is much buzz across the interwebs saying that there's a CURL bug, which I suppose might have been added to your server by a software update. Allegedly it should be fixed by a future update. One such reference: https://bbs.archlinux.org/viewtopic.php?id=175433
2. There's also a lot of buzz saying a similar error occurs when not specifying to use v3 for the SSL protocol version. So, you can try that by making the following code change:
/includes/modules/payment/paypaldp.php
around line 2305, locate this section:
Code:
function send3DSecureHttp($url, $data, $debugData) { // verify that the URL uses a supported protocol.
if ((strpos($url, "http://")=== 0) || (strpos($url, "https://")=== 0)) {
// create a new cURL resource and set params
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "cmpi_msg=".urlencode($data));
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_TIMEOUT, 8);
Change that to the following instead:
Code:
function send3DSecureHttp($url, $data, $debugData) {
// verify that the URL uses a supported protocol.
if ((strpos($url, "http://")=== 0) || (strpos($url, "https://")=== 0)) {
// create a new cURL resource and set params
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "cmpi_msg=".urlencode($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 8);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8);
curl_setopt($ch, CURLOPT_SSLVERSION, 3);
Yes, some lines were removed, and some others added. This is intentional and important.
I'd be interested in knowing whether this helps, or what the error changes to.
Bookmarks