doufendi9063 2012-07-09 03:17
浏览 65

为什么openssl_get_publickey返回NULL?

I am writing the authorization process for a program that's built on top of open social. The library that I am using is Oauth library. The certificate has been tested on other machines where it worked perfectly, though the exact same certificate does not work in my computer.

After I trace the error, the problem comes from this function: (inside oauth.php line:207)

$publickeyid = openssl_get_publickey($cert);

note : $cert is RSA Certificate

This function returns NULL on my computer, while it actually works (return valid value) when tested from the other computer. How can I fix this?

Does this have something to do with my Apache or local machine configuration? My php.ini and httpd.conf seem to be the same as the other machine also. I have been working on this things for several hours, and can't find any related solution in the Internet as well.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?