dpa55065 2012-12-03 10:46
浏览 77

PHP OpenID上的HTTP提取失败

I have dropped a php v5 openid library into a site and ran detect.php which fails on 'HTTP Fetching' (report at the end of this message). The discovery.php also fails. The server is running on HTTPS and has all the needed libraries added so should just work - as it has on other servers I have implemented it on.

Any attempt to run the consumer/try_auth.php fails with an error 'not a valid OpenID' which apparently is being caused by the failure to http fetch.

Any pointers would be appreciated.

OpenID Library Support Report

This script checks your PHP installation to determine if you are set up to use the JanRain PHP OpenID library.

Setup Incomplete

Your system needs a few changes before it will be ready to run the OpenID library.

Math support

Your PHP installation has gmp support. Good.

Cryptographic-quality randomness source

Using (insecure) pseudorandom number source, because Auth_OpenID_RAND_SOURCE has been defined as null.

Data storage

No SQL database support was found in this PHP installation. See the PHP manual if you need to use an SQL database. The library supports the MySQL, PostgreSQL, and SQLite database engines, as well as filesystem-based storage. In addition, PEAR DB is required to use databases.

If you are using a filesystem-based store or SQLite, be aware that open_basedir is in effect. This means that your data will have to be stored in one of the following locations:

'' If you are using the filesystem store, your data directory must be readable and writable by the PHP process and not available over the Web.

HTTP Fetching

This PHP installation has support for libcurl. Good.

Fetching URL failed!

Your PHP installation appears to support SSL, so it will be able to process HTTPS identity URLs and server URLs.

XML Support

XML parsing support is present using the Auth_Yadis_dom interface.

Query Corruption

Your web server does not corrupt queries. Good.

  • 写回答

1条回答 默认 最新

  • dongqiabei7682 2014-01-09 10:50
    关注

    This error has been thrown because SSL verification fail when curl_getinfo on Auth_Yadis_ParanoidHTTPFetcher. To solve this issue, you should disable SSL verification by adding this option:

    curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
    

    to Auth/Yadis/ParanoidHTTPFetcher.php at line 93 (after $c = curl_init(););

    Hope this help.

    评论

报告相同问题?

悬赏问题

  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示