Main content begins here

SSL Protocol Error for Drupal Ubercart with Payment Gateway

Sunday, December 25, 2011

I received a dreaded "cURL error: Unknown SSL protocol error in connection to" when setting up the payment gateway for use in a Drupal Ubercart store recently. Oh noes! Here's how I fixed it.

Find the module ubercart > payment > uc_authorizenet

On line 558 (your mileage may vary) I added:
curl_setopt($ch, CURLOPT_SSLVERSION, 3); // Force SSLv3 to fix Unknown SSL Protocol error

Goodbye sweet, sweet error. I barely knew ye.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <h2> <br> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

This question is for testing whether you are a human visitor and to prevent automated spam submissions.

First of all...I can see why Kim recommended you. This is near perfect right off the bat.

C. L., Owner Northstar Creative
Copyright ©2001-2018 Way Cool Web Design LLC. All Rights Reserved.