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.
Wow! That's it! Since I changed that block yesterday, it was one of the first things I checked, but I overlooked the problem. You're a genius, and I'm very grateful ... Again, I am most grateful for your speedy assistance and impressed with your ability.
T. H., IT Analyst Town of Wethersfield, Connecticut
Copyright ©2001-2017 Way Cool Web Design LLC. All Rights Reserved.