11-03-2014 18:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-03-2014 18:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hey,
Well we got caught with our pants down on the SSL change.
When I enage HTTPS on our api calls, I get:
Peer certificate cannot be authenticated with given CA certificates.
We are using the PECL OAuth for PHP.
Any ideas?
Thanks,
Nick
Answered! Go to the Best Answer.

- Labels:
-
OAuth 1.0a
-
PHP
Accepted Solutions
11-04-2014 05:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-04-2014 05:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Argh I swear swapping between C# & PHP is going to be the death of me.
I had the fix right off - $oauth->disableSSLChecks();
but managed to code it $oauth.disableSSLChecks();
Due to the way it's being called the crash in the code was hidden.
Anyway, thanks for the help,
Regards,
Nick H

11-03-2014 18:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



11-03-2014 18:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Based on a few answers I found via Google searches, you might not have an up-to-date version of curl, which PHP uses: http://stackoverflow.com/questions/14566864/peer-certificate-cannot-be-authenticated-with-known-ca-c...

11-03-2014 18:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-03-2014 18:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the quick reply. I saw this but didn't did deep enough apparnetly. I will see about updating our CURL. We are on PHP 5.3 - I wouldn't have thought that would be out of date.

11-04-2014 05:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-04-2014 05:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Argh I swear swapping between C# & PHP is going to be the death of me.
I had the fix right off - $oauth->disableSSLChecks();
but managed to code it $oauth.disableSSLChecks();
Due to the way it's being called the crash in the code was hidden.
Anyway, thanks for the help,
Regards,
Nick H

