Pages

Sunday, April 15, 2012

BigCommerce API SSL error

While using BigCommerce API  if you are getting the below error:


" Fatal error: Uncaught exception 'BigCommerce_Api_NetworkError' with message 'SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL "


This is because by default it checks to verify the SSL certificate used by the BigCommerce store.


Adding the below line of code will disable the check.


BigCommerce_Api::verifyPeer(false);