Main content begins here

SSL Protocol Error for Drupal Ubercart with Authorize.net Payment Gateway

Sunday, December 25, 2011

I received a dreaded "cURL error: Unknown SSL protocol error in connection to secure.authorize.net:443" when setting up the Authorize.net 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

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

Way Cool Web Design has done the job well and in good time. They made an incredibly nice site that exceeded my expectations in both looks of the design, and quality of HTML/CSS coding. Way Cool Web Design is an expert in their field, and I am sure can meet any expectations in looks and quality that someone is looking for.

James G. Truth I.T. Solutions
Copyright ©2001-2017 Way Cool Web Design LLC. All Rights Reserved.