Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Peer certificate cannot be authenticated with given CA certificates

ANSWERED

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

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

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...

Best Answer
0 Votes

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.

Best Answer
0 Votes

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

Best Answer
0 Votes