1

Starting at 4am Sunday, we suddenly started seeing errors from curl, from the Marketplace Web Service Orders PHP5 Library MarketplaceWebServiceOrders/Client.php script:

Caught Exception: Internal Error
Response Status Code: 0
Error Code: 
Error Type: 
Request ID: 
XML: 
ResponseHeaderMetadata: RequestId: , ResponseContext: , Timestamp: 

The actual curl error number is 77, with the message being:

Problem with the SSL CA cert (path? access rights?)

Interestingly, when I test with curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); I still get the same error. I also get the same error when using the following options:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAPATH, '/etc/pki/tls/certs/ca-bundle.crt');

It strikes me odd that this just suddenly stopped working this weekend. We haven't changed the code, nor has the server had any updates run at that time. How can I go about fixing this?

LeonardChallis
  • 7,759
  • 6
  • 45
  • 76

1 Answers1

2

We had the exact same problem this morning. It seems it has something to do with the bash update from last weekend.

We fixed the problem by simply restarting apache.

Edit:

For more information about the bash update you can also check http://www.troyhunt.com/2014/09/everything-you-need-to-know-about.html

Peter
  • 8,776
  • 6
  • 62
  • 95
  • Graceful and regular restart for apache did not work for us. Restarting the server did. – Marty Sep 29 '14 at 14:48