Re: Oauth tutorials/help needed

205 views
Skip to first unread message

Edward Ocampo-Gooding

unread,
Jul 3, 2012, 10:37:45 AM7/3/12
to shopify-a...@googlegroups.com, shopi...@googlegroups.com
Hi Neil,

Thanks for your question.

We’re moving technical discussion of Shopify Apps to Stack Overflow as it speeds things up for all parties.

Please post your question there and tag it with “PHP” and “Shopify”.

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

Edward Ocampo-Gooding

unread,
Jul 3, 2012, 7:33:59 PM7/3/12
to shopify-a...@googlegroups.com, shopi...@googlegroups.com
Nice!

Make sure to put your answer in the answer section for mad reputation / ease of reading for the next poor guy.

Thanks for writing it up 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.


Reply all
Reply to author
Forward
0 new messages