Reply
Member
Posts: 3
Registered: ‎03-05-2018
Accepted Solution

TLS 1.2 Magento Gateway error: Unable to read response, or response is empty

On our server, we have upgraded our ciphers and TLS settings to match api.authorize.net on ssllabs.

Ours: https://www.ssllabs.com/ssltest/analyze.html?d=metrahometheater.com

Theirs: https://www.ssllabs.com/ssltest/analyze.html?d=api.authorize.net

 

They match.

 

Yet, we continue to get a 'Gateway error: Unable to read response, or response is empty' error and are unable to process credit cards.

 

We have tried this in test mode and get the same response.

 

Any help would be greatly appreciated.


Accepted Solutions
Solution
Accepted by topic author JohnCiesluk
‎03-12-2018 01:44 PM
Member
Posts: 3
Registered: ‎03-05-2018

Re: TLS 1.2 Magento Gateway error: Unable to read response, or response is empty

Hello All,

 

Eventually we solved the problem.

 

This is what we did to solve it:

 

We updated libcurl from version 7.19 to 7.58 because all versions prior to libcurl 7.42 default to TLS 1.1 which isn't compatible.  So even though our certificate and htaccess was giving us an A rating and using TLS 1.2, our curl was requesting to Authorize.net on TLS 1.1.

 

Of course, in our case, we are using an older version of Zend server and had to install the update to Zend server.  Our version of Zend server does not support the newer versions of libcurl so we had to install it via a workaround which we did compliments of this tutorial:

 

https://zend18.zendesk.com/hc/en-us/articles/219131697-HowTo-Implement-TLS-1-2-Support-with-the-cURL...

View solution in original post


All Replies
Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: TLS 1.2 Magento Gateway error: Unable to read response, or response is empty

Hello @JohnCiesluk

 

Are you able to succesfully connect to the sandbox using TLS 1.2?

 

Some developers are reporting that issues connecting to production when they work in sandbox are resolved by switching to use our Akamai endpoints, https://api2* or https://secure2*

 

Richard

Member
Posts: 3
Registered: ‎03-05-2018

Re: TLS 1.2 Magento Gateway error: Unable to read response, or response is empty

We have the same issues in Sandbox mode.

We have also tried using the api, api2, secure, and secure2 endpoints with no success.

Posts: 2,765
Topics: 57
Kudos: 269
Blog Posts: 67
Registered: ‎12-05-2011

Re: TLS 1.2 Magento Gateway error: Unable to read response, or response is empty

@JohnCiesluk

 

It sounds like your platform may need upgrades or configuration changes to ensure its setup properly.  Can you provide details for your system for the community to see?

 

Richard

Solution
Accepted by topic author JohnCiesluk
‎03-12-2018 01:44 PM
Member
Posts: 3
Registered: ‎03-05-2018

Re: TLS 1.2 Magento Gateway error: Unable to read response, or response is empty

Hello All,

 

Eventually we solved the problem.

 

This is what we did to solve it:

 

We updated libcurl from version 7.19 to 7.58 because all versions prior to libcurl 7.42 default to TLS 1.1 which isn't compatible.  So even though our certificate and htaccess was giving us an A rating and using TLS 1.2, our curl was requesting to Authorize.net on TLS 1.1.

 

Of course, in our case, we are using an older version of Zend server and had to install the update to Zend server.  Our version of Zend server does not support the newer versions of libcurl so we had to install it via a workaround which we did compliments of this tutorial:

 

https://zend18.zendesk.com/hc/en-us/articles/219131697-HowTo-Implement-TLS-1-2-Support-with-the-cURL...