dropbox SDK php无法使用已知的CA证书进行身份验证

时间:2012-10-11 17:34:25

标签: php oauth ssl-certificate dropbox

我正在尝试使用php dropbox sdk,但我收到了这些错误

Uncaught exception 'OAuthException' with message 'making the request failed (Peer certificate cannot be authenticated with known CA certificates)' in C:\xampp\htdocs\mydropbox\Dropbox\OAuth\PHP.php:126 Stack trace: #0 C:\xampp\htdocs\mydropbox\Dropbox\OAuth\PHP.php(126): OAuth->getRequestToken('https://api.dro...') #1 C:\xampp\htdocs\mydropbox\index.php(18): Dropbox_OAuth_PHP->getRequestToken() #2 {main} Next exception 'Dropbox_Exception_RequestToken' with message 'We were unable to fetch request tokens. This likely means that your consumer key and/or secret are incorrect.' in C:\xampp\htdocs\mydropbox\Dropbox\OAuth\PHP.php:132 Stack trace: #0 C:\xampp\htdocs\mydropbox\index.php(18): Dropbox_OAuth_PHP->getRequestToken() #1 {main} thrown in C:\xampp\htdocs\mydropbox\Dropbox\OAuth\PHP.php on line 132

我确实尝试了很多次,使用OpenSSL生成新的并遵循所有指令,但它仍然给我这个错误。

参考资料来源:http://help.discretelogix.com/miscellaneous/installing-self-signed-ssl-certificate-on-wamp-server.htm

1 个答案:

答案 0 :(得分:1)

我找到了一个不使用CA认证的github,或者它已经为我照顾过了。

https://github.com/BenTheDesigner/Dropbox

它对我有用。