On Tuesday, 3 July, 2012 at 10:34 AM, Neil Taylor wrote:
Hi,
I'm running PHP 5.4 and apache 2.2 on a windows 7 machine with cURL 7.24 and I am trying to follow along with the Sample App (https://github.com/cmcdonaldca/ohShopify-Sample-App) which uses the ohShopify PHP adapter but...
I'm getting the "SSL certificate problem, verify that the CA cert is OK" from cURL when authorize.php calls ShopifyClient->getAccessToken(). This error is mentioned in the PHP API FAQ - Q2 (http://wiki.shopify.com/PHP_API_FAQ) with a possible solution. But I don't understand where to "set USE_SSL_PEM to true in your configuration". What configuration does this mean? PHP.ini ? CURLOPT_ ? Just define it in the php code? I've tried it in the php code like so: define('USE_SSL_PEM',true); - but that doesn't work..
-
The second part in the PHP API FAQ is to define 'CA_FILE' in the .php code. I'm okay with that, I think, as I have exported the myshopify.com certificate and it seems valid - although Windows only recognises it if exported as a file with the .crt extension.
-
I've also tried what is suggested here (http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/) by setting CURLOPT_CAINFO but with the same result.
-
Thanks,
Neil
On Tuesday, 3 July, 2012 at 6:37 PM, Neil Taylor wrote:
Yep. Noted. I did that here: stackoverflow.com. ... and solved it myself far too many hours later. :-D
Thanks.